Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 47e8974

Browse files
committed
removing error code that wont happen on the api it was being handled against
1 parent b65129c commit 47e8974

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

js/languages/en_US.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,6 @@
15151515
"genericPurchaseErrTitle": "Unable To Complete The Purchase",
15161516
"invalidCoinDiv": "The listing does not have a valid coin divisibility.",
15171517
"unableToConvertCryptoQuantity": "Unable to convert the crypto quantity to base units.",
1518-
"serverErrorInsufficientFunds": "You do not have sufficient funds to complete the purchase.",
15191518
"serverErrorBelowDust": "The purchase price is below the minimum spend amount for the payment currency."
15201519
}
15211520
},

js/templates/modals/editListing/coupon.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
if (ob.bigPriceDiscount) {
1818
discountAmount = ob.number.toStandardNotation(ob.bigPriceDiscount);
1919
} else if (typeof ob.percentDiscount !== 'undefined') {
20-
discountAmount = ob.percentDiscount;
20+
discountAmount = ob.number.toStandardNotation(ob.percentDiscount);
2121
}
2222

2323
const isFixedDiscount = !!ob.bigPriceDiscount;

js/views/modals/purchase/Purchase.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import Backbone from 'backbone';
44
import bigNumber from 'bignumber.js';
55
import '../../../lib/select2';
66
import '../../../utils/lib/velocity';
7-
import {
8-
ERROR_INSUFFICIENT_FUNDS,
9-
ERROR_DUST_AMOUNT,
10-
} from '../../../constants';
7+
import { ERROR_DUST_AMOUNT } from '../../../constants';
118
import { removeProp } from '../../../utils/object';
129
import app from '../../../app';
1310
import loadTemplate from '../../../utils/loadTemplate';
@@ -584,10 +581,6 @@ export default class extends BaseModal {
584581
}).format(this.inventory),
585582
});
586583
if (this.inventoryFetch) this.inventoryFetch.abort();
587-
} else if (errMsg === ERROR_INSUFFICIENT_FUNDS) {
588-
// This one really shouldn't show because the client checks that funds
589-
// are available locally.
590-
errMsg = app.polyglot.t('purchase.errors.serverErrorInsufficientFunds');
591584
} else if (errMsg === ERROR_DUST_AMOUNT) {
592585
errMsg = app.polyglot.t('purchase.errors.serverErrorBelowDust');
593586
}

0 commit comments

Comments
 (0)