Resetting repeater elements after updating the data

I tried posting the code on another thread and was told it’s too complicated. I’ve tested and retested the code and if/else statement logic. I know it’s not the code.
Other parts of the code execute as expected. I’m 99% sure it has something to do with the .hide() and .show() functions. They are directly related to the html side of the page and are running asynchronously to the rest of the code. I can run a .style on the button and a .hide() on the very next line. The .style will work, the .hide() doesn’t. Riddle me that Batman! ;). The data in the repeater is fine but the html elements (buttons) do not reset.

Again, the code executes perfectly on page refresh but not when setting repeater data to = [] and then repopulating it.

If wix customer service can’t help, I’ll have to redesign my UI and user workflow.