How could the following code sometimes evaluate to false?
(transport.responseText == \'1\' || transport.responseText == \'CARD_VALID\')
M
I had the same problem and i noticed that i was comparing two objects
to solve this issue i had to use
JSON.stringify(user._id) === JSON.stringify(userId) // true