From bb6e43a3333709a411d0cff6f81899b90d0d33d5 Mon Sep 17 00:00:00 2001 From: tony Date: Mon, 30 Sep 2024 10:16:27 +0700 Subject: [PATCH] fix studio (launch + update button stattus) --- .../Buy/components3/LaunchButton/index.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/modules/blockchains/Buy/components3/LaunchButton/index.tsx b/src/modules/blockchains/Buy/components3/LaunchButton/index.tsx index e3c271031..24e982904 100644 --- a/src/modules/blockchains/Buy/components3/LaunchButton/index.tsx +++ b/src/modules/blockchains/Buy/components3/LaunchButton/index.tsx @@ -145,14 +145,17 @@ const LaunchButton = ({ isUpdate }: { isUpdate?: boolean }) => { if (!loggedIn) { return 'Launch'; } - if (needContactUs) { - return 'Launch'; - } + // if (needContactUs) { + // return 'Launch'; + // } if (isUpdate) { return 'Update'; } + if (isUpdateFlow) { + return 'Update'; + } return 'Launch'; - }, [loggedIn, isUpdate, needContactUs]); + }, [loggedIn, isUpdate, needContactUs, isUpdateFlow]); useEffect(() => { const getChainIDRandomFunc = async () => { @@ -395,7 +398,7 @@ const LaunchButton = ({ isUpdate }: { isUpdate?: boolean }) => { yoloNodePositions, walletTypeForms, whitePaperForms, - whitePaperPositions + whitePaperPositions, }); // console.log('UPDATE FLOW: --- dynamicForm --- ', dynamicForm); @@ -403,7 +406,7 @@ const LaunchButton = ({ isUpdate }: { isUpdate?: boolean }) => { stakingForms, yoloGameForms, airdropForms, - tokensForms + tokensForms, }); let isConfigDapp = false;