Skip to content

Commit

Permalink
fix: check whether starship is running
Browse files Browse the repository at this point in the history
  • Loading branch information
marslavish committed Jul 24, 2024
1 parent 65eaea2 commit 9ebeb3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/chain-template/pages/faucet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 9ebeb3a

Please sign in to comment.