Skip to content

Last Safe address is not persistent in local storage #6119

@kpyszkowski

Description

@kpyszkowski

Bug description

When visiting the /wc route (WalletConnect), the useLastSafe hook doesn't return anything resulting as redirection to the /welcome page instead of particular Safe.

It doesn't return anything because it's not listed as persistent so it's not stored in browser's local storage.

TLDR lastSafe is always falsy in this particular case.

Environment

  • Browser: Chrome
  • Wallet: MetaMask
  • Chain: Ethereum mainnet

Steps to reproduce

  1. Try to connect Safe Wallet via WalletConnect
  2. Notice you are redirected to /welcome page instead of /home?safe=...

Expected result

The last used Safe is read from local storage and uses is automatically redirected to the particular Safe.

Obtained result

Every time user has to select the Safe manually. The feature of useLastSafe hook doesn't work on /wc route.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions