Phaser - Fast Foodie

Hi!

So I’m totally stuck on task 23 on Phaser - Fast Foodie Link

        targets: gameState.currentCustomer,
        x: 500,
        delay: 100,
        angle: 90,
        duration: 1000,
        ease: 'Power2',
        onComplete: function () {
          gameState.customer.meterContainer.visible =  true;    
        },
        
      });

The on complete function only throws errors like : GameScene.js:137 Uncaught TypeError: Cannot read property ‘meterContainer’ of undefined

I don’t understand what I am doing wrong.

solved it

 const tweens = this.tweens.add({
        targets: gameState.currentCustomer,
        x: 500,
        delay: 100,
        angle: 90,
        duration: 1000,
        ease: 'Power2',
        onComplete: () => {
          gameState.currentCustomer.meterContainer.visible =  true;    
        },

I changed the function into an arrow function and changed from customer to currentCustomer. I guesse the problem accrued because the Tweens target is currentCustomer and not customer