uselotus / lotus

Open Source Pricing & Packaging Infrastructure
https://www.uselotus.io
MIT License
1.73k stars 126 forks source link

Fix integrations page not loading when Nango key is missing #763

Closed nielthiart closed 1 year ago

nielthiart commented 1 year ago

The integrations page does not load if VITE_NANGO_PK is undefined, and returns a JS error: "You should specify a Public Key when using Nango Cloud (cf. documentation)."

In the original version, (undefined || "change_me") always evaluates to "change_me", so the conditional doesn't work as intended.