nalnir / crypties

Open-source PvP cardgame.
https://crypties-neon.vercel.app
MIT License
1 stars 0 forks source link

MONGO_URI not found when disconnecting wallet and connect it again #32

Closed nalnir closed 1 year ago

nalnir commented 1 year ago

When disconnecting the wallet and connecting it again, the MONGO_URI env variable is not found causeing to throw an error in connectDB function.

nalnir commented 1 year ago

This one is very strange as it fires the throw Error, so instead using return statement.