fix: close zap modal after zap

closes #37
This commit is contained in:
2025-05-28 11:16:49 +01:00
parent d3a8c41f93
commit c6b76bc64d
2 changed files with 5 additions and 1 deletions

View File

@ -172,12 +172,15 @@ class _StreamPage extends State<StreamPage> with RouteAware {
showModalBottomSheet(
context: context,
constraints: BoxConstraints.expand(),
builder: (ctx) {
builder: (context) {
return SingleChildScrollView(
primary: false,
child: ZapWidget(
pubkey: stream.info.host,
target: stream.event,
onPaid: (_) {
context.pop();
},
zapTags:
// tag goal onto zap request
stream.info.goal != null

View File

@ -283,6 +283,7 @@ class _ZapWidget extends State<ZapWidget> {
zapRequest: zapRequest,
);
// auto pay with NWC
final wallet = await loginData.value?.getWallet();
if (wallet != null && invoice != null) {
try {