module Admins::CompetitionPrizeUsersHelper def display_auth_state(flag, other = false, success: nil, normal: nil, error: nil) success ||= ''.html_safe normal ||= '--' error ||= ''.html_safe return success if flag other ? normal : error end end