OK so the weirdest thing just happened. The file was reverted back to its original buggy state and somehow not checked in on git. Was I dreaming yesterday?
I must have made the change, uploaded it, but not pushed it to git, and then somehow it reverted??