Merge pull request #3740 from BlueWallet/local

FIX: Localize LN Invoice Expire time
This commit is contained in:
GLaDOS 2021-09-03 12:35:10 +01:00 committed by GitHub
commit bcdde230a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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}",

View File

@ -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 => {