From 15a4ae82b0c672c857f6b44000594651ac1742f3 Mon Sep 17 00:00:00 2001 From: songwongtp <16089160+songwongtp@users.noreply.github.com> Date: Tue, 26 Sep 2023 13:29:37 +0700 Subject: [PATCH 1/5] fix: handle refetch --- CHANGELOG.md | 1 + src/lib/pages/interaction/index.tsx | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7eebc98cb..e3316af40 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -116,6 +116,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Bug fixes +- [#547](https://github.com/alleslabs/celatone-frontend/pull/547) Fix refetch module when clicking change module button - [#543](https://github.com/alleslabs/celatone-frontend/pull/543) Fix Initia testnet chain config - [#539](https://github.com/alleslabs/celatone-frontend/pull/539) Fix JSON schema upload text - [#527](https://github.com/alleslabs/celatone-frontend/pull/527) Fix ellipsis explorer link diff --git a/src/lib/pages/interaction/index.tsx b/src/lib/pages/interaction/index.tsx index 2738965c7..678006cf6 100644 --- a/src/lib/pages/interaction/index.tsx +++ b/src/lib/pages/interaction/index.tsx @@ -38,11 +38,16 @@ export const Interaction = () => { [] ); - const { data: verificationData } = useVerifyModule({ + const { data: verificationData, refetch } = useVerifyModule({ address: module?.address as Option, moduleName: module?.moduleName, }); + const handleChangeModule = () => { + refetch(); + onOpen(); + }; + return ( <> {