Skip to content

Auto-login redirect fails when wallet owns Business Object on mobile browsers #4

Description

@woydarko

Bug Description

The auto-login feature that detects if a wallet already owns a Business Object and redirects to dashboard does not work correctly on mobile browsers (Safari iOS, Chrome Android).

Steps to Reproduce

  1. Open the app on mobile browser (Safari iOS 17 or Chrome Android)
  2. Connect wallet that already has a registered Business Object
  3. Expected: Automatically redirected to dashboard
  4. Actual: Stays on landing/registration page, no redirect happens

Expected Behavior

When a wallet with an existing Business Object connects, the app should automatically detect it and redirect to the dashboard without requiring manual navigation.

Actual Behavior

On mobile browsers, the auto-login check appears to fire before the wallet connection is fully established. The Business Object query returns empty, so the redirect never triggers. User has to manually navigate or refresh.

Environment

  • Mobile Safari iOS 17.4
  • Chrome Android 124
  • IOTA Testnet

Root Cause (suspected)

The useContracts.ts hook likely runs the Business Object check before useCurrentAccount() returns the connected wallet address on mobile. Desktop works because wallet connection resolves faster.

Wallet: 0x2350c7fb06933b09f882081ba629e795952356cf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions