nalnir / crypties

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

Normalize wallet address, toLowerCase() is undefined. Cannot define walletAddress #33

Closed nalnir closed 1 year ago

nalnir commented 1 year ago

This happened only once. Possibly user state was wiped out on saving code so the last step did not get the user wallet address cause the error. Should not be an issue in production.

nalnir commented 1 year ago

The issue stemmed from not awaiting a promise for updatedUser so the query set was a promise instead of the data, effectively making walletAddress undefined for later usage.