From ca7f0cddfe985cfe8589f1f76908ed7ccb1d98fd Mon Sep 17 00:00:00 2001 From: Jackie <1121@generative.xyz> Date: Fri, 6 Sep 2024 10:01:03 +0700 Subject: [PATCH] disable dropdown in update flow --- .../blockchains/Buy/components3/NetworkDropdown/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/modules/blockchains/Buy/components3/NetworkDropdown/index.tsx b/src/modules/blockchains/Buy/components3/NetworkDropdown/index.tsx index e37e42c88..c21ec2555 100644 --- a/src/modules/blockchains/Buy/components3/NetworkDropdown/index.tsx +++ b/src/modules/blockchains/Buy/components3/NetworkDropdown/index.tsx @@ -73,6 +73,12 @@ const NetworkDropdown = ({}: Props) => { setIsOpenDropdown(false); }; + const handleOpenDropdown = () => { + if (isUpdateFlow) return; + + setIsOpenDropdown(!isOpenDropdown); + }; + const _icon = React.useMemo( () => getIcon(currentValue?.icon), [currentValue?.icon], @@ -100,7 +106,7 @@ const NetworkDropdown = ({}: Props) => {