Skip to content

Commit

Permalink
Merge branch 'issue-3162' of https://github.com/gkbishnoi07/talawa-admin
Browse files Browse the repository at this point in the history
 into issue-3162
  • Loading branch information
gkbishnoi07 committed Jan 15, 2025
2 parents 8320e05 + 06e0030 commit 8947da3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/OrganizationCard/OrganizationCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ function OrganizationCard({
console.log('Mutation executed successfully'); // Log mutation success
toast.success(t('MembershipRequestWithdrawn') as string); // Ensure this gets called
} catch (error: unknown) {
console.error('Failed to withdraw membership request:', error);
if (process.env.NODE_ENV === 'development') {
console.error('Failed to withdraw membership request:', error);
}
toast.error(t('errorOccured') as string);
}
}
Expand Down

0 comments on commit 8947da3

Please sign in to comment.