From cdfcfb61fbc37028cfd31b1dba87d9081981dcf6 Mon Sep 17 00:00:00 2001 From: corlard3y Date: Fri, 27 Sep 2024 17:43:04 +0100 Subject: [PATCH] remove console --- src/modules/rewards/hooks/useCreateRewardsUser.tsx | 2 -- src/modules/rewards/hooks/useRewardsAuth.tsx | 5 +---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/rewards/hooks/useCreateRewardsUser.tsx b/src/modules/rewards/hooks/useCreateRewardsUser.tsx index 45c8b352b0..4272950d9b 100644 --- a/src/modules/rewards/hooks/useCreateRewardsUser.tsx +++ b/src/modules/rewards/hooks/useCreateRewardsUser.tsx @@ -49,8 +49,6 @@ const useCreateRewardsUser = () => { const verificationProof = await generateVerificationProof(data, userPushSDKInstance); if (!verificationProof) return; - console.log(userPushSDKInstance?.pgpPublicKey?.slice(-40), 'create user'); - createUser( { pgpPublicKey: userPushSDKInstance?.pgpPublicKey, diff --git a/src/modules/rewards/hooks/useRewardsAuth.tsx b/src/modules/rewards/hooks/useRewardsAuth.tsx index c7d6e6eab1..dc97904527 100644 --- a/src/modules/rewards/hooks/useRewardsAuth.tsx +++ b/src/modules/rewards/hooks/useRewardsAuth.tsx @@ -82,7 +82,7 @@ const useRewardsAuth = () => { //if verification proof is null, unlock push profile update to update userPUSHSDKInstance if (verificationProof === null || verificationProof === undefined) { if (isWalletConnected && userPushSDKInstance && userPushSDKInstance.readmode()) { - console.log('open modal', userPushSDKInstance?.pgpPublicKey); + console.log('open modal'); setIsAuthModalVisible(true); } } @@ -102,7 +102,6 @@ const useRewardsAuth = () => { if (error instanceof AxiosError && error?.response?.data?.error === errorMessage) { const errorExistsInUnlockProfile = checkUnlockProfileErrors(userPushSDKInstance); if (errorExistsInUnlockProfile || !isWalletConnected) return; - console.log('first try'); unlockProfile(); } } @@ -115,14 +114,12 @@ const useRewardsAuth = () => { // rewards activity first user if (isVerifyClicked && status === 'error' && isActiveAccount) { if (error instanceof AxiosError && error?.response?.data?.error === errorMessage) { - console.log('second try'); unlockProfile(); } } // rewards activity existing user if (isVerifyClicked && userDetails && !handleVerify && isActiveAccount) { - console.log('third try', isVerifyClicked, handleVerify); unlockProfile(); } }, [status, isVerifyClicked, userPushSDKInstance]);