diff --git a/src/lib/utils/toasting.ts b/src/lib/utils/toasting.ts index bb0ae922..b55e7969 100644 --- a/src/lib/utils/toasting.ts +++ b/src/lib/utils/toasting.ts @@ -19,7 +19,7 @@ function toasting({ type = 'default', txt = '' }: ToastingProps) { transition: Slide, }; - if (type !== ('success' || 'error' || 'warning')) { + if (type === 'default') { toast(txt, toastOption); } else { toast[type](txt, toastOption);