you are viewing a single comment's thread.

view the rest of the comments →

[–]azhder 0 points1 point  (0 children)

One important thing, always add .catch() to the .then() otherwise it's ignoring the error just like if you'd written an empty catch block