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.
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.
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.