zaps: initial configuration for default zap amount

This commit is contained in:
William Casarin
2023-02-06 10:04:53 -08:00
parent 1f79c20973
commit f96ad99790
2 changed files with 14 additions and 1 deletions

View File

@@ -52,7 +52,8 @@ struct ZapButton: View {
damus_state.lnurls.endpoints[target.pubkey] = payreq
}
guard let inv = await fetch_zap_invoice(payreq, zapreq: zapreq, amount: 1000000) else {
let tip_amount = get_default_tip_amount(pubkey: damus_state.pubkey)
guard let inv = await fetch_zap_invoice(payreq, zapreq: zapreq, amount: tip_amount) else {
DispatchQueue.main.async {
zapping = false
}