I have this function, intended to toggle the background between two predefined colors of a button each time it is clicked:
const showAvailButtonClicked = (tar