Skip to content

Commit

Permalink
remove WalletMismatchException
Browse files Browse the repository at this point in the history
  • Loading branch information
shan57blocks committed Dec 17, 2024
1 parent e934383 commit 30f40f4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/huma-shared/src/utils/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 30f40f4

Please sign in to comment.