import { ERROR_CODES } from "coral-common/errors" ; const triggers = [ ERROR_CODES . USER_BANNED , ERROR_CODES . USER_SUSPENDED , ERROR_CODES . USER_WARNED , ] ; param code export default function shouldTriggerViewerRefresh ( code ) { return triggers . includes ( code ) ; }