Property setter was expecting a Button component but got a String instead

i'm creating a memory game and followed the tutorial on youtube, but there's error on the screen, i asked chatgpt but it doesn't solve the problem, what should ido?



Did you disable the clock in the designer?
Taifun


This one right, I've already turned on

You should set timer enabled to false in the designer
Taifun

I've tried it, but it's still error, I think the main problem
is in the block I circled, because when i delete it, the error was gone, but I don't know how to fix it

Make sure, that firstBtn and secBtn akways is a button component
You initialize those global variables with an empty text, so you will get that error if the variables are not correctly set

Taifun