diff --git a/packages/utils/src/fetcher/index.ts b/packages/utils/src/fetcher/index.ts index d565dd75..451775a3 100644 --- a/packages/utils/src/fetcher/index.ts +++ b/packages/utils/src/fetcher/index.ts @@ -84,8 +84,9 @@ class Fetcher { error.message = data.errorMessage; error.name = data.errorCodeName; - if (isClient) toast.error(error.message); - throw error; + if (isClient) { + toast.error(error.message); + } else throw error; } }