fix: resolve zap profile issue
This commit is contained in:
parent
c04b84a5b6
commit
9aa63fd11c
3 changed files with 9 additions and 13 deletions
|
|
@ -147,7 +147,7 @@ function ZapDialogContent({
|
|||
throw new Error('You need to be logged in to zap')
|
||||
}
|
||||
setZapping(true)
|
||||
const zapResult = await lightning.zap(pubkey, recipient, sats, comment, event, () =>
|
||||
const zapResult = await lightning.zap(pubkey, event ?? recipient, sats, comment, () =>
|
||||
setOpen(false)
|
||||
)
|
||||
// user canceled
|
||||
|
|
@ -155,7 +155,7 @@ function ZapDialogContent({
|
|||
return
|
||||
}
|
||||
if (event) {
|
||||
noteStatsService.addZap(pubkey, event?.id, zapResult.invoice, sats, comment)
|
||||
noteStatsService.addZap(pubkey, event.id, zapResult.invoice, sats, comment)
|
||||
}
|
||||
} catch (error) {
|
||||
toast.error(`${t('Zap failed')}: ${(error as Error).message}`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue