The like of a user is being shown when the user removed their like in my program. How can I fix it?

Solution
async function myFunction() {
     .......
     if (likebtn.style.color === 'cornflowerblue') {
         ........
     }
     ........
}
async function myFunction() {
     .........
      if (likebtn.style.color !== 'cornflowerblue') {
        .........
      }
     ........
}