CottageCabbage / vu-dooit

Task Manager application for Web, Desktop and Mobile. Still in development
https://CottageCabbage.github.io/vu-dooit
3 stars 1 forks source link

Innefe #25

Open CottageCabbage opened 2 years ago

CottageCabbage commented 2 years ago

At the moment, when the app starts, getUserData() is called through mounted(). This calls getUsername, getBio, etc. These are where the problem is.

If one of these functions return undefined (as oposed to an empty object (with key: "whatever" tho)), it will create the default data (eg db.user.put({ key: 'username', value: 'Newbie' }); and call getUserData() again ― even if it's the only one that would've returned undefined out of the getWhatever functions.

It's something that would only affect the first time an user opens the app, but still bothers me.