don't show zap button if no wallet

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-05-07 14:36:56 -04:00
parent 86d2a9e2e7
commit 54c0fdb563
10 changed files with 84 additions and 58 deletions

View File

@@ -229,6 +229,7 @@ impl<'a> DaveUi<'a> {
zaps: ctx.zaps,
pool: ctx.pool,
job_pool: ctx.job_pool,
current_account_has_wallet: false,
};
let txn = Transaction::new(note_context.ndb).unwrap();
@@ -253,7 +254,7 @@ impl<'a> DaveUi<'a> {
|ui| {
notedeck_ui::NoteView::new(
&mut note_context,
&None,
None,
&note,
NoteOptions::default(),
jobs,