From 10245c9627846c03b5c56923eeda55ed792d6c25 Mon Sep 17 00:00:00 2001 From: Chase Fleming Date: Fri, 13 Dec 2024 14:44:47 -0800 Subject: [PATCH] Fix AN logic (#1047) * Fix AN logic * Switch fallback --------- Co-authored-by: Chase Fleming <1666730+chasefleming@users.noreply.github.com> --- src/config/fcl.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/fcl.ts b/src/config/fcl.ts index 9bd4b7e511..f28aebd4ea 100644 --- a/src/config/fcl.ts +++ b/src/config/fcl.ts @@ -8,9 +8,9 @@ console.log('Dapp running on network:', flowNetwork); export function configureFCL(): void { fcl.config({ 'flow.network': flowNetwork, - 'accessNode.api': flowNetwork ? - 'https://rest-testnet.onflow.org' : - 'https://rest-mainnet.onflow.org', + 'accessNode.api': flowNetwork === 'mainnet' ? + 'https://rest-mainnet.onflow.org' : + 'https://rest-testnet.onflow.org', 'discovery.wallet': `https://fcl-discovery.onflow.org/${flowNetwork}/authn`, 'app.detail.icon': 'https://avatars.githubusercontent.com/u/62387156?v=4', 'app.detail.title': 'Flow Dev Portal',