When I click the button ‘Follow’, I want the text to be replaced with new text that says ‘Following!’. As it is now, when the Follow button is pressed, the new text on the button appears briefly, then the button reverts back to the old text.
Here is the link in the public editor. Go the Preview mode to see the button’s behaviour:
Here is the conditional logic when the button ‘Follow’ is pressed (you can see this in the editor as well):
How can I get the new text ‘Following!’ to remain after the button is pressed?