From 30f40f41b4c420bc6cff2eeebd4365d5a4a36f51 Mon Sep 17 00:00:00 2001 From: shan Date: Tue, 17 Dec 2024 15:46:35 +0800 Subject: [PATCH] remove WalletMismatchException --- packages/huma-shared/src/utils/const.ts | 1 - packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/packages/huma-shared/src/utils/const.ts b/packages/huma-shared/src/utils/const.ts index f143fa4..2e003b7 100644 --- a/packages/huma-shared/src/utils/const.ts +++ b/packages/huma-shared/src/utils/const.ts @@ -15,7 +15,6 @@ export const CAMPAIGN_REFERENCE_CODE = 'CAMPAIGN_REFERENCE_CODE' export const BP_FACTOR_NUMBER = 10000 export enum HUMA_ACCOUNT_EXCEPTION { - WalletMismatchException = 'WalletMismatchException', AccountTokenNotFoundException = 'AccountTokenNotFoundException', InvalidAccountTokenException = 'InvalidAccountTokenException', WalletNotSignedInException = 'WalletNotSignedInException', diff --git a/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts b/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts index 88271a7..2f971b9 100644 --- a/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts +++ b/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts @@ -35,7 +35,6 @@ export const useAuthErrorHandling = ( axios.isAxiosError(error) && error.response?.status === HttpStatusCode.Unauthorized && [ - HUMA_ACCOUNT_EXCEPTION.WalletMismatchException, HUMA_ACCOUNT_EXCEPTION.AccountTokenNotFoundException, HUMA_ACCOUNT_EXCEPTION.InvalidAccountTokenException, ].includes(error.response?.data?.detail?.type)