From 0594ad6f1dfee6c17adabd0821b58f69cc07c5a4 Mon Sep 17 00:00:00 2001 From: shan Date: Wed, 13 Nov 2024 16:46:27 +0800 Subject: [PATCH] fix typo --- .../huma-web-shared/src/hooks/useAuthErrorHandling/index.ts | 2 +- .../src/components/Lend/solanaSupply/6-PointsEarned.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts b/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts index 29c617dd..18d513a7 100644 --- a/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts +++ b/packages/huma-web-shared/src/hooks/useAuthErrorHandling/index.ts @@ -41,7 +41,7 @@ export const useAuthErrorHandling = ( ].includes(error.response?.data?.detail?.type) const isWalletNotCreatedError = error === 'WalletNotCreatedException' - const isWalletNotSignInError = error === 'WalletNotSignInException' + const isWalletNotSignInError = error === 'WalletNotSignedInException' return { isUnauthorizedError, diff --git a/packages/huma-widget/src/components/Lend/solanaSupply/6-PointsEarned.tsx b/packages/huma-widget/src/components/Lend/solanaSupply/6-PointsEarned.tsx index 50a42726..ca2e7fc7 100644 --- a/packages/huma-widget/src/components/Lend/solanaSupply/6-PointsEarned.tsx +++ b/packages/huma-widget/src/components/Lend/solanaSupply/6-PointsEarned.tsx @@ -92,7 +92,7 @@ export function PointsEarned({ ) setWalletOwnership(ownership) if (!ownership) { - setAuthError('WalletNotSignInException') + setAuthError('WalletNotSignedInException') } } }