tidy up logic so renderEnableBets is only called when there is a warning class