Button increments before getting destroyed

The first time the yes or no button is clicked the buttons and the popup disappear. The second time it popups again it needs to be clicked twice. the third time it needs to be clicked three times before it disappears.
yesButton1.setInteractive();
yesButton1.on(‘pointerdown’, function() {
//code block
yesButton1.destroy();
noButton1.destroy();
popup1.destroy();
});
noButton1.setInteractive();
noButton1.on(‘pointerdown’, function() {
//code block
noButton1.destroy();
yesButton1.destroy();
popup1.destroy();
});

You may be creating duplicate buttons on top of each other.

Try logging in console.

Thanks I’ll check that out

Thanks, resolved. They were being recreated multiple times