diff --git a/BlueApp.ts b/BlueApp.ts index 4cc109e01..03c7a7968 100644 --- a/BlueApp.ts +++ b/BlueApp.ts @@ -180,7 +180,7 @@ export class AppStorage { decryptStorage = async (password: string): Promise => { if (password === this.cachedPassword) { - this.cachedPassword = undefined; // maybe reset to false ? + this.cachedPassword = undefined; await this.saveToDisk(); this.wallets = []; this.tx_metadata = {}; diff --git a/class/wallets/lightning-custodian-wallet.ts b/class/wallets/lightning-custodian-wallet.ts index e962edc56..c968a1f29 100644 --- a/class/wallets/lightning-custodian-wallet.ts +++ b/class/wallets/lightning-custodian-wallet.ts @@ -393,8 +393,7 @@ export class LightningCustodianWallet extends LegacyWallet { if (typeof tx.amt !== 'undefined' && typeof tx.fee !== 'undefined') { // lnd tx outgoing - // @ts-ignore: fixme wtf? - tx.value = parseInt((tx.amt * 1 + tx.fee * 1) * -1, 10); + tx.value = (tx.amt * 1 + tx.fee * 1) * -1; } if (tx.type === 'paid_invoice') {