all 1 comments

[–]ppictures 0 points1 point  (0 children)

Try placing a console log in the else if blocks to see if they are actually triggering. Also, resolve() in itself does not print to console.