Skip to content

Commit

Permalink
Fix AN logic (#1047)
Browse files Browse the repository at this point in the history
* Fix AN logic

* Switch fallback

---------

Co-authored-by: Chase Fleming <[email protected]>
  • Loading branch information
chasefleming and chasefleming authored Dec 13, 2024
1 parent d36caa8 commit 10245c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/config/fcl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 10245c9

Please sign in to comment.