mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
Merge pull request #3740 from BlueWallet/local
FIX: Localize LN Invoice Expire time
This commit is contained in:
commit
bcdde230a8
@ -101,7 +101,7 @@
|
||||
"exchange": "Exchange",
|
||||
"expired": "Expired",
|
||||
"expiredLow": "Expired",
|
||||
"expiresIn": "Expires: {time}",
|
||||
"expiresIn": "Expires in {time} minutes",
|
||||
"payButton": "Pay",
|
||||
"placeholder": "Invoice",
|
||||
"potentialFee": "Potential Fee: {fee}",
|
||||
|
@ -113,7 +113,7 @@ const ScanLndInvoice = () => {
|
||||
if (+new Date() > expiresIn) {
|
||||
expiresIn = loc.lnd.expiredLow;
|
||||
} else {
|
||||
expiresIn = Math.round((expiresIn - +new Date()) / (60 * 1000)) + ' min';
|
||||
expiresIn = Math.round((expiresIn - +new Date()) / (60 * 1000));
|
||||
}
|
||||
Keyboard.dismiss();
|
||||
setParams({ uri: undefined, invoice: data });
|
||||
@ -274,7 +274,7 @@ const ScanLndInvoice = () => {
|
||||
const getFees = () => {
|
||||
const min = Math.floor(decoded.num_satoshis * 0.003);
|
||||
const max = Math.floor(decoded.num_satoshis * 0.01) + 1;
|
||||
return `${min} sat - ${max} sat`;
|
||||
return `${min} ${BitcoinUnit.SATS} - ${max} ${BitcoinUnit.SATS}`;
|
||||
};
|
||||
|
||||
const onWalletSelect = selectedWallet => {
|
||||
|
Loading…
Reference in New Issue
Block a user