No-one can reasonably answer that question for you. We don't know what your game plan was.

Personally I try to avoid holding any stock when its earnings are announced. It is the most dangerous time to be holding. For the type of high relative strength stocks I play there is an asymmetric effect of earnings. Bad earnings can really tank them and good earnings tend to have much less of an effect. Therefore my avoidance at that time.