fix: cosmetic changes

This commit is contained in:
Ivan Vershigora 2024-03-20 21:20:43 +03:00 committed by Overtorment
parent e1c99f19b4
commit b3fb057dd7
2 changed files with 2 additions and 3 deletions

View file

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

View file

@ -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') {