From 9ebeb3aa1a3253cba4cc9ac85dec464a91dea7be Mon Sep 17 00:00:00 2001 From: luca Date: Wed, 24 Jul 2024 21:55:24 +0800 Subject: [PATCH] fix: check whether starship is running --- templates/chain-template/pages/faucet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/chain-template/pages/faucet.tsx b/templates/chain-template/pages/faucet.tsx index 73409f84b..15924cdcd 100644 --- a/templates/chain-template/pages/faucet.tsx +++ b/templates/chain-template/pages/faucet.tsx @@ -19,7 +19,8 @@ export default function Faucet() { const { data: starshipChains } = useStarshipChains(); const checkIsChainSupported = () => { - const isStarshipRunning = !!starshipChains; + const isStarshipRunning = + starshipChains?.chains?.length && starshipChains?.assets?.length; if (!isStarshipRunning) { toast({