Skip to content

Fix: Show savings activity list when balance is zero but activities exist#469

Merged
jvsena42 merged 1 commit intomasterfrom
claude/fix-issue-464
Mar 3, 2026
Merged

Fix: Show savings activity list when balance is zero but activities exist#469
jvsena42 merged 1 commit intomasterfrom
claude/fix-issue-464

Conversation

@ben-kaufman
Copy link
Contributor

Summary

Fixes #464 — When savings balance is 0, tapping the savings card showed the generic "SEND BITCOIN TO YOUR SAVING BALANCE" empty state screen instead of the savings activity list.

Root Cause

In SavingsWalletView, the activity list (ScrollView with ActivityList) was only rendered when wallet.totalOnchainSats > 0. When balance reached zero (e.g., after transferring all funds to spending), the view fell through to the EmptyStateView overlay, hiding all transaction history.

Changes

  • SavingsWalletView.swift: Show activity list when balance > 0 OR when there are onchain activities. Only show empty state when both balance is zero AND no activities exist. Transfer button remains gated behind positive balance.
  • SpendingWalletView.swift: Applied the same fix for consistency — show activity list when balance > 0 OR when there are lightning activities.

Testing

  • Have on-chain funds
  • Transfer all funds from savings to spending
  • Tap on savings card → should show the activity list with past transactions
  • Fresh wallet with no history → should still show the empty state screen
  • Same behavior verified for spending wallet view

…ro but activities exist

When savings (or spending) balance was 0, tapping the wallet card showed
the empty state "SEND BITCOIN TO YOUR SAVING BALANCE" screen instead
of the activity list. This happened because the activity list visibility
was gated solely on balance > 0.

Now the activity list is shown when there's either a positive balance OR
existing activities. The empty state is only shown when both balance is
zero AND there are no activities.

The transfer button remains gated behind a positive balance since there's
nothing to transfer when balance is zero.

Fixes #464
@ovitrif
Copy link
Collaborator

ovitrif commented Mar 2, 2026

IIRC the issue fixed here repros in Android as well 😢

@ben-kaufman
Copy link
Contributor Author

@ovitrif on android it seems correct already actually.

@jvsena42 jvsena42 merged commit 5c6b2ce into master Mar 3, 2026
11 checks passed
@jvsena42 jvsena42 deleted the claude/fix-issue-464 branch March 3, 2026 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ios: savings with zero balance opens send-to-savings screen instead of activity

4 participants