diff --git a/src/services/passport.ts b/src/services/passport.ts index ab4ec9cbb4..93ea2c0e15 100644 --- a/src/services/passport.ts +++ b/src/services/passport.ts @@ -68,8 +68,8 @@ export const connectPassport = async (account: string, singin: boolean) => { return true; } catch (error: any) { console.error('error', error); - if (error.code === 'ACTION_REJECTED') { - showToastError('Rejected By User'); + if (error.code === 4001) { + showToastError('User rejected the request.'); } else { showToastError(error); }