This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
templates/modals/editListing Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 1515
1515
"genericPurchaseErrTitle" : " Unable To Complete The Purchase" ,
1516
1516
"invalidCoinDiv" : " The listing does not have a valid coin divisibility." ,
1517
1517
"unableToConvertCryptoQuantity" : " Unable to convert the crypto quantity to base units." ,
1518
- "serverErrorInsufficientFunds" : " You do not have sufficient funds to complete the purchase." ,
1519
1518
"serverErrorBelowDust" : " The purchase price is below the minimum spend amount for the payment currency."
1520
1519
}
1521
1520
},
Original file line number Diff line number Diff line change 17
17
if (ob.bigPriceDiscount) {
18
18
discountAmount = ob.number.toStandardNotation(ob.bigPriceDiscount);
19
19
} else if (typeof ob.percentDiscount !== 'undefined') {
20
- discountAmount = ob.percentDiscount;
20
+ discountAmount = ob.number.toStandardNotation(ob. percentDiscount) ;
21
21
}
22
22
23
23
const isFixedDiscount = !!ob.bigPriceDiscount;
Original file line number Diff line number Diff line change @@ -4,10 +4,7 @@ import Backbone from 'backbone';
4
4
import bigNumber from 'bignumber.js' ;
5
5
import '../../../lib/select2' ;
6
6
import '../../../utils/lib/velocity' ;
7
- import {
8
- ERROR_INSUFFICIENT_FUNDS ,
9
- ERROR_DUST_AMOUNT ,
10
- } from '../../../constants' ;
7
+ import { ERROR_DUST_AMOUNT } from '../../../constants' ;
11
8
import { removeProp } from '../../../utils/object' ;
12
9
import app from '../../../app' ;
13
10
import loadTemplate from '../../../utils/loadTemplate' ;
@@ -584,10 +581,6 @@ export default class extends BaseModal {
584
581
} ) . format ( this . inventory ) ,
585
582
} ) ;
586
583
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' ) ;
591
584
} else if ( errMsg === ERROR_DUST_AMOUNT ) {
592
585
errMsg = app . polyglot . t ( 'purchase.errors.serverErrorBelowDust' ) ;
593
586
}
You can’t perform that action at this time.
0 commit comments