Fix missing zap amount

This commit is contained in:
Jon Staab 2024-08-28 09:26:44 -07:00
parent 805bc76e3a
commit cbddc4ea6e

View File

@ -15,7 +15,6 @@
const zapper = deriveZapper(recipient) const zapper = deriveZapper(recipient)
$: zap = zapFromEvent(note, $zapper) $: zap = zapFromEvent(note, $zapper)
$: amount = formatSats(zap.invoiceAmount / 1000)
onMount(() => { onMount(() => {
loadZapper(recipient) loadZapper(recipient)
@ -25,7 +24,7 @@
{#if zap} {#if zap}
<div class="flex flex-col gap-2 overflow-hidden text-ellipsis"> <div class="flex flex-col gap-2 overflow-hidden text-ellipsis">
<div> <div>
<PersonLink pubkey={zap.request?.pubkey} /> zapped <PersonLink pubkey={recipient} /> {amount} sats! <PersonLink pubkey={zap.request?.pubkey} /> zapped <PersonLink pubkey={recipient} /> {formatSats(zap.invoiceAmount / 1000)} sats!
</div> </div>
<NoteContentKind1 note={zap.request} {showEntire} /> <NoteContentKind1 note={zap.request} {showEntire} />
{#if url} {#if url}