Skip to content

Commit

Permalink
remove console
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y committed Sep 27, 2024
1 parent be1aea9 commit cdfcfb6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions src/modules/rewards/hooks/useCreateRewardsUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
5 changes: 1 addition & 4 deletions src/modules/rewards/hooks/useRewardsAuth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand All @@ -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();
}
}
Expand All @@ -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]);
Expand Down

0 comments on commit cdfcfb6

Please sign in to comment.