ever-co / ever-demand

Ever® Demand™ - Open Commerce Platform - https://everdemand.co
https://everdemand.co
GNU Affero General Public License v3.0
1.71k stars 458 forks source link

Can't retrieve when invitation is launched before api start for the first time #1450

Open Neosoulink opened 2 years ago

Neosoulink commented 2 years ago

Bug Report (found in this branch)

🙁 Actual behavior

When I start the shop-mobile-ionic package, go to my browser, and land on the invitation page without starting the API server before, I can no longer get data of products... To be able to get products, I must delete the caches of the site relaunch the app to display the invitation page (and make sure that the api is running).

What happens is: It checks if the registered device exists in the database and since it can't find the user, it doesn't display anything.

🙂 Expected behavior

When the ionic app launches and it doesn't find a server but the invitation page is launched, it does not save the data locally or it deletes the data of the device locally if it does not find the user in the database or it displays a dialog box with a message saying for example "you do not exist in the database, do you need to log out?" to delete caches