From d6db71e440205f3c73a4a5381d872fa49dc2745a Mon Sep 17 00:00:00 2001 From: wjrjerome Date: Mon, 9 Dec 2024 18:59:12 +1100 Subject: [PATCH] move getNetworkConfig out of the react method --- src/app/components/Modals/UnbondModal.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/Modals/UnbondModal.tsx b/src/app/components/Modals/UnbondModal.tsx index 23a68c8b..b8f233a2 100644 --- a/src/app/components/Modals/UnbondModal.tsx +++ b/src/app/components/Modals/UnbondModal.tsx @@ -18,6 +18,7 @@ interface UnbondModalProps { onProceed: () => void; awaitingWalletResponse: boolean; } +const { networkName, coinName } = getNetworkConfig(); export const UnbondModal = ({ isOpen, @@ -25,9 +26,7 @@ export const UnbondModal = ({ onProceed, awaitingWalletResponse, }: UnbondModalProps) => { - const { networkName, coinName } = getNetworkConfig(); const isMobileView = useIsMobileView(); - const DialogComponent = isMobileView ? MobileDialog : Dialog; return (