An alternative way
-
have a custom state (say on the button “is clicked?” yes/no) On click of the button set the custom state to “yes”
-
have a conditional on the button
if “is clicked?” is yes
set the element isn’t clickable to “ticked” -
and for good measure maybe set the background colours of the button to grey to let your user know that the button is not active anymore.