Skip to content

Closing the wallet clears the send flow and can make generated eCash tokens unrecoverable #210

Description

@keshav0479

I accidentally clicked outside the wallet after generating an eCash token and noticed that the whole send screen resets when the wallet is opened again.

I tested it with a 10 sat token. The generated token disappeared from the UI after closing and reopening the wallet.

Token generated After clicking outside and reopening wallet
Generated 10 sat eCash token Empty send form after reopening the wallet

I had copied the token first, so I was able to import it again and recover sats. Otherwise, I would not have had a way to access it again.

The reset also clears the entered amount and any other in-progress send state. Since clicking anywhere outside the popover closes it, this is easy to trigger accidentally.

Steps to reproduce

  1. Open the wallet
  2. Go to Send > eCash Token
  3. Enter an amount and click Generate Token
  4. Click outside the wallet before copying the token
  5. Open the wallet again and return to Send > eCash Token

Expected behavior

Closing and reopening the wallet should preserve the current send flow, including entered values and any generated or in-progress payment details.
A generated eCash token should remain recoverable until the user explicitly discards it or confirms that it has been copied.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions