import { ERROR_CODES } from "coral-common/errors" ; const triggers = [ ERROR_CODES . COMMENT_BODY_TOO_SHORT , ERROR_CODES . COMMENT_BODY_EXCEEDS_MAX_LENGTH , ERROR_CODES . COMMENTING_DISABLED , ERROR_CODES . STORY_CLOSED , ] ; param code export default function shouldTriggerSettingsRefresh ( code ) { return triggers . includes ( code ) ; }