The right way to get entry to the article price?
Underneath is my code after I do console.log(information) in my reaction.
{ “user_errors”:
[
{ “code”: “UNDEFINED”, “message”: “Already have tops prime.” }
]
}
In JS, I’m doing this:
let check = information;
if(check.user_errors.message == “Have already got tops top.”) {
console.log(‘Hi’);
}
Error: Uncaught SyntaxError: “[object Object]” isn’t legitimate JSON
https://preview.redd.it/6or76nevuioa1.png?width=524&format=png&auto=webp&v=enabled&s=cf131abb5e8ed84835b8147caffe95ebb7ec8caf
View Reddit via fitness_first – View Supply