land on Order page; ui fixes

This commit is contained in:
tim
2025-03-26 16:59:22 -04:00
parent b1a864ce31
commit dabf6dd60f
6 changed files with 29 additions and 32 deletions

View File

@@ -153,7 +153,16 @@ export async function connectWallet(chainId) {
await updateAccounts(chainId, p)
}
catch (e) {
if (e.reason!=='rejected') {
console.log('connectWallet error', e.reason, e)
if (e.reason==='rejected') {
const ws = useWalletStore();
const tx = ws.transaction
if (tx) {
tx.state = TransactionState.Rejected
ws.transaction = null
}
}
else {
console.error(e, e.reason)
throw e
}