Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Sep 6, 2024
1 parent f3b2ea1 commit a05f594
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,9 +479,9 @@ const LaunchButton = ({ isUpdate }: { isUpdate?: boolean }) => {
if (isConfigDapp) {
console.log('[LaunchButton] refresh dapp data');
setTimeout(() => {
// dispatch(requestReload());
// setUpdated(true);
window.location.reload();
dispatch(requestReload());
setUpdated(true);
// window.location.reload();
}, 1000);
}
getOrderDetailByID(orderDetail.orderId);
Expand Down
2 changes: 1 addition & 1 deletion src/modules/blockchains/dapp/hooks/useFetchDapp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const useFetchDapp = () => {

React.useEffect(() => {
fetchData();
}, []);
}, [needReload]);

useEffect(() => {
if (dappState?.chain?.chainId) {
Expand Down

0 comments on commit a05f594

Please sign in to comment.