diff --git a/sdk/apps/modal-example/src/routes/aptos.tsx b/sdk/apps/modal-example/src/routes/aptos.tsx index 31f66719..6214ee09 100644 --- a/sdk/apps/modal-example/src/routes/aptos.tsx +++ b/sdk/apps/modal-example/src/routes/aptos.tsx @@ -27,7 +27,6 @@ export default function AptosPage() { const [adapter, setAdapter] = createSignal() const [eager, setEager] = createSignal(false) const [accountInfo, setAccountInfo] = createSignal() - const [currentNetwork, setCurrentNetwork] = createSignal() onMount(async () => { NightlyConnectAptosAdapter.build( @@ -232,15 +231,14 @@ export default function AptosPage() { changeNetworkResponse.status === UserResponseStatus.APPROVED ) { const changedNetwork = await adapter()!.network() - toast.success(`Changed network to ${currentNetwork}!`) - setCurrentNetwork(changedNetwork.chainId === 27 ? 'Aptos' : 'Movement') + toast.success(`Changed network!`) } } catch (error) { toast.error("Couldn't change network") console.log(error) } }}> - Change to {currentNetwork()} + Change network