mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-04 04:13:49 +01:00
fix: cosmetic changes
This commit is contained in:
parent
e1c99f19b4
commit
b3fb057dd7
2 changed files with 2 additions and 3 deletions
|
@ -180,7 +180,7 @@ export class AppStorage {
|
||||||
|
|
||||||
decryptStorage = async (password: string): Promise<boolean> => {
|
decryptStorage = async (password: string): Promise<boolean> => {
|
||||||
if (password === this.cachedPassword) {
|
if (password === this.cachedPassword) {
|
||||||
this.cachedPassword = undefined; // maybe reset to false ?
|
this.cachedPassword = undefined;
|
||||||
await this.saveToDisk();
|
await this.saveToDisk();
|
||||||
this.wallets = [];
|
this.wallets = [];
|
||||||
this.tx_metadata = {};
|
this.tx_metadata = {};
|
||||||
|
|
|
@ -393,8 +393,7 @@ export class LightningCustodianWallet extends LegacyWallet {
|
||||||
|
|
||||||
if (typeof tx.amt !== 'undefined' && typeof tx.fee !== 'undefined') {
|
if (typeof tx.amt !== 'undefined' && typeof tx.fee !== 'undefined') {
|
||||||
// lnd tx outgoing
|
// lnd tx outgoing
|
||||||
// @ts-ignore: fixme wtf?
|
tx.value = (tx.amt * 1 + tx.fee * 1) * -1;
|
||||||
tx.value = parseInt((tx.amt * 1 + tx.fee * 1) * -1, 10);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tx.type === 'paid_invoice') {
|
if (tx.type === 'paid_invoice') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue