I\'m trying to add test coverage for this React component and I\'m getting this message on the component "else path is not taken" when there is no else after if st