fix issue with cashu
This commit is contained in:
parent
e3e7c24813
commit
402abae59b
2 changed files with 7 additions and 12 deletions
|
@ -21,7 +21,7 @@
|
|||
"dexie": "^4.0.11",
|
||||
"iconify-icon": "^3.0.0",
|
||||
"nostr-tools": "^2.15.0",
|
||||
"portalbtc-lib": "git+https://git.arx-ccn.com/Arx/PortalBTCLib.git#2d858727b05f9d66e4f028c086d93cebf769f3b8",
|
||||
"portalbtc-lib": "git+https://git.arx-ccn.com/Arx/PortalBTCLib.git#b194ace1287f3c5b22b51a605791d06c44cfeda7",
|
||||
"qrcode": "^1.5.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -4,18 +4,13 @@
|
|||
import LoadingIndicator from "./LoadingIndicator.svelte";
|
||||
|
||||
let loading = $derived(!$walletState.open);
|
||||
let balance = $derived(
|
||||
$walletState.open ? $walletState.balance - $walletState.cashuBalance : 0
|
||||
);
|
||||
let pending = $derived($walletState.open ? $walletState.pendingBalance : 0);
|
||||
let cashuBalance = $derived(
|
||||
$walletState.open ? $walletState.cashuBalance : 0
|
||||
);
|
||||
|
||||
const formattedTotal = $derived(satsComma(balance + cashuBalance));
|
||||
const formattedPending = $derived(satsComma(pending));
|
||||
const formattedLightning = $derived(satsComma(balance));
|
||||
const formattedCashu = $derived(satsComma(cashuBalance));
|
||||
const formattedTotal = $derived(satsComma($walletState.balance));
|
||||
const formattedPending = $derived(satsComma($walletState.pendingBalance));
|
||||
const formattedLightning = $derived(
|
||||
satsComma($walletState.balance - $walletState.cashuBalance)
|
||||
);
|
||||
const formattedCashu = $derived(satsComma($walletState.cashuBalance));
|
||||
|
||||
let showSplit = $state(false);
|
||||
let containerEl: HTMLButtonElement;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue