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
- Open the app on mobile browser (Safari iOS 17 or Chrome Android)
- Connect wallet that already has a registered Business Object
- Expected: Automatically redirected to dashboard
- 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
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
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
Root Cause (suspected)
The
useContracts.tshook likely runs the Business Object check beforeuseCurrentAccount()returns the connected wallet address on mobile. Desktop works because wallet connection resolves faster.Wallet: 0x2350c7fb06933b09f882081ba629e795952356cf