From 708d254739e4815f796f520328cabb5a44bb2689 Mon Sep 17 00:00:00 2001 From: Call Delegation <106365423+calldelegation@users.noreply.github.com> Date: Tue, 8 Oct 2024 11:38:55 -0600 Subject: [PATCH] review --- src/components/VersionDropdown.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/VersionDropdown.tsx b/src/components/VersionDropdown.tsx index 2c60744ba..7f9fb2962 100644 --- a/src/components/VersionDropdown.tsx +++ b/src/components/VersionDropdown.tsx @@ -14,7 +14,7 @@ export default function VersionDropdown({ }) { const [opened, setOpened] = useState(false); const [activeVersion, setActiveVersion] = useState< - typeof FUEL_TESTNET_UPPER_CASE | 'Nightly' + typeof FUEL_TESTNET_UPPER_CASE | typeof FUEL_TESTNET | 'Nightly' >(versionSet === 'default' ? FUEL_TESTNET_UPPER_CASE : 'Nightly'); const router = useRouter(); const setVersion = useSetVersion(); @@ -35,13 +35,13 @@ export default function VersionDropdown({ return ( - Version: {activeVersion} + Version: {activeVersion === FUEL_TESTNET_UPPER_CASE || activeVersion === FUEL_TESTNET ? 'Stable' : activeVersion} - {FUEL_TESTNET_UPPER_CASE} - {versionSet === 'default' && } + Stable {/* Display 'Stable' instead of raw version */} + {versionSet === 'default' && } Nightly - {versionSet === 'nightly' && } + {versionSet === 'nightly' && }