Skip to content

Commit

Permalink
Merge pull request #4471 from Giveth/fix/sign_reject_error_message
Browse files Browse the repository at this point in the history
fix: change error code to 4001
  • Loading branch information
MohammadPCh authored Jul 24, 2024
2 parents a5cf843 + d1d1dff commit 6688931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/passport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6688931

Please sign in to comment.