FartDump Feed

Small Fartle Update

After submitting your score in Fartle you get asked for your initials to submit your score. Then after submitting your initials, you would get a second confirmation modal. This was annoying and not necessary at all. So, I ditched it.

I thought this would be an easy win. For most developers, it probably would have been. But, I'm not that smart, lol.

I have a function that refreshes the daily scores table so that your submitted score will be included after playing. That function was tied to the second confirmation modal. It shouldn't have been to begin with as it was just bad logic.

I moved the call to the function over to the initials modal logic, but it kept creating race conditions that would return an empty response from the database. It took me too long to realize I was trying to call it too late inside the actual modal buttons logic that was also nested inside the initials modal logic. This was causing a race condition where the high scores table would not populate at all.

I've tested it several times and it seems to be working. I'm worried that this introduced some other bugs because the whole endgame flow was disrupted by this one small change. If you notice a bug with the Fartle game or anywhere else for that matter; let me know.

TLDR; I'm an idiot, but it's working now, i think. 

#53
Posted:
← Back to Feed