Skip to content

Commit a499c1e

Browse files
authored
Merge pull request #650 from pendulum-chain/fix-remaining-limit-check-invalid
Fix remaining limit check to allow valid amounts
2 parents e24d4c2 + 0eb79af commit a499c1e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

frontend/src/services/initialChecks.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ function useRampAmountWithinAllowedLimits() {
1717
try {
1818
const subaccount = await BrlaService.getUser(taxId);
1919
const remainingLimitResponse = await BrlaService.getUserRemainingLimit(taxId);
20-
console.log('level:', subaccount.kycLevel);
2120
if (subaccount.kycLevel < 2) {
2221
return true;
2322
}
@@ -29,8 +28,8 @@ function useRampAmountWithinAllowedLimits() {
2928

3029
const amountNum = Number(amountUnits);
3130
const remainingLimitNum = Number(remainingLimitInUnits);
32-
console.log('remainingLimitNum', remainingLimitNum);
33-
if (amountNum > remainingLimitNum) {
31+
32+
if (amountNum <= remainingLimitNum) {
3433
return true;
3534
} else {
3635
showToast(

0 commit comments

Comments
 (0)