diff --git a/.changeset/serious-points-check.md b/.changeset/serious-points-check.md new file mode 100644 index 0000000..91d2286 --- /dev/null +++ b/.changeset/serious-points-check.md @@ -0,0 +1,5 @@ +--- +"@everipedia/iq-login": patch +--- + +Fixes login always uses polygon chain diff --git a/src/components/IqLoginProvider.tsx b/src/components/IqLoginProvider.tsx index 533c283..2caf3ee 100644 --- a/src/components/IqLoginProvider.tsx +++ b/src/components/IqLoginProvider.tsx @@ -19,7 +19,8 @@ if (!process.env.NEXT_PUBLIC_IS_PRODUCTION) { console.log("NEXT_PUBLIC_IS_PRODUCTION is not set"); } -const chain = process.env.NEXT_PUBLIC_IS_PRODUCTION ? polygon : iqTestnet; +const chain = + process.env.NEXT_PUBLIC_IS_PRODUCTION === "true" ? polygon : iqTestnet; export const defaultConfig = getDefaultConfig({ appName: "IQ.Wiki AI Editor",