I've met the following sentence in a rather poorly written text:
"While life happened both good and bad, they were persistent in sticking to the program rules, looking for options to solve their mental health issues."
Is "happened both good and bad" okay? It should be an adverb, in my opinion, or is it some sort of a set phrase?