IF ELSE IF statement repeating twice

Thank you for the suggestion. Tried it. The console gets logged two times. Here is the output:


itemObj1.productBcid = 9789353163150

Hook afterQuery for collection products result ignored! Expected hook result to resolve to an object with an ‘_id’ property, but got [Undefined]

itemObj1.productBcid = 9789353163150