From c81f118a0a48e59df689e3b329966828193d2068 Mon Sep 17 00:00:00 2001 From: Paul McInnis Date: Fri, 20 Dec 2024 15:58:31 -0500 Subject: [PATCH] fix(bex): properly update the default swap fee if we change the pool type --- apps/hub/src/app/pools/create/CreatePageContent.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/hub/src/app/pools/create/CreatePageContent.tsx b/apps/hub/src/app/pools/create/CreatePageContent.tsx index 32b07ddbd..520cc1bcd 100755 --- a/apps/hub/src/app/pools/create/CreatePageContent.tsx +++ b/apps/hub/src/app/pools/create/CreatePageContent.tsx @@ -211,6 +211,10 @@ export default function CreatePageContent() { const [swapFeeIsInvalid, setSwapFeeIsInvalid] = useState(false); const [swapFee, setSwapFee] = useState(initialFee); + useEffect(() => { + setSwapFee(initialFee); + }, [poolType]); + const { data: tokenPrices, isLoading: isLoadingTokenPrices } = useSubgraphTokenInformations({ tokenAddresses: poolCreateTokens