diff --git a/src/hooks/useSnackMessage.ts b/src/hooks/useSnackMessage.ts index ab03027d..83310926 100644 --- a/src/hooks/useSnackMessage.ts +++ b/src/hooks/useSnackMessage.ts @@ -107,7 +107,10 @@ export function useSnackMessage(): UseSnackMessageReturn { persist } */ - const snackError = useCallback((snackInputs: SnackInputs) => enqueue(snackInputs, 'error'), [enqueue]); + const snackError = useCallback( + (snackInputs: SnackInputs) => enqueue({ ...snackInputs, persist: true }, 'error'), + [enqueue] + ); /* see snackError */ const snackWarning = useCallback((snackInputs: SnackInputs) => enqueue(snackInputs, 'warning'), [enqueue]);