AtB-AS / webshop

AtB Webshop / AtB Nettbutikk
https://nettbutikk.atb.no
European Union Public License 1.2
0 stars 1 forks source link

Trigger onboarding if profile document doesn't have an id #503

Closed mjenssen closed 2 years ago

mjenssen commented 2 years ago

Closes #502

The problem is that due to securityLevel existing as a field, doc.data() will not be undefined or an empty object, and the onboarding will thus never start. As far as I can tell, id as a field is only added once onboarding has been completed, so we check that that field is set to a non-falsey value.

github-actions[bot] commented 2 years ago

Visit the preview URL for this PR (updated for commit 92aa614):

https://atb-webshop-staging--pr503-trigger-onboarding-f-y8v4finf.web.app

(expires Wed, 13 Apr 2022 14:46:43 GMT)

🔥 via Firebase Hosting GitHub Action 🌎