Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Merge branch 'main' into kratos-cookie-flow
Browse files Browse the repository at this point in the history
  • Loading branch information
ntheile authored Feb 9, 2023
2 parents 448d34a + 7546e3b commit bc58195
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/store/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (!isBrowser) {

if (
process.env.NETWORK &&
!["mainnet", "signet", "signet", "regtest"].includes(process.env.NETWORK)
!["mainnet", "testnet", "signet", "regtest"].includes(process.env.NETWORK)
) {
throw new Error("Invalid NETWORK value")
}
Expand All @@ -46,6 +46,11 @@ const networkMap = (graphqlUrl: string): Network => {
return "signet"
}

if (graphqlUrl.match("testnet")) {
// FIXME: remove casting
return "testnet" as Network
}

return "regtest"
}

Expand Down

0 comments on commit bc58195

Please sign in to comment.