Skip to content

Fix remaining limit check to allow valid amounts #650

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 17, 2025

Conversation

ebma
Copy link
Member

@ebma ebma commented May 17, 2025

This pull request includes cleanup and a logic correction in the useRampAmountWithinAllowedLimits function within frontend/src/services/initialChecks.ts. The changes improve code clarity and fix a conditional check.

Code cleanup:

  • Removed unnecessary console.log statements that logged the kycLevel and remainingLimitNum values, reducing noise in the code. [1] [2]

Logic correction:

  • Updated the conditional check to correctly compare amountNum and remainingLimitNum, ensuring the function returns true when amountNum is less than or equal to remainingLimitNum instead of greater.

@ebma ebma merged commit a499c1e into staging May 17, 2025
1 check passed
@ebma ebma deleted the fix-remaining-limit-check-invalid branch May 17, 2025 13:45
Copy link

netlify bot commented May 17, 2025

Deploy Preview for pendulum-pay ready!

Name Link
🔨 Latest commit 0eb79af
🔍 Latest deploy log https://app.netlify.com/projects/pendulum-pay/deploys/682892d101d4a40008060ee7
😎 Deploy Preview https://deploy-preview-650--pendulum-pay.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant