Skip to content

Commit d29f873

Browse files
author
devofficer
committed
fix: frame wallet synchronization issue
1 parent b442524 commit d29f873

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/hooks/use-tcr-network.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ const useTcrNetwork = () => {
2222

2323
setNetworkStatus(status => {
2424
if (status !== NETWORK_STATUS.swtiching && tcrAddress) {
25-
history.push(`/tcr/${chainId}/${tcrAddress}`)
25+
setTimeout(() => {
26+
history.push(`/tcr/${chainId}/${tcrAddress}`)
27+
window.location.reload()
28+
})
2629
return NETWORK_STATUS.supported
2730
} else return NETWORK_STATUS.unsupported
2831
})

0 commit comments

Comments
 (0)