Describe the bug
Upon registering as a farmer you are shown the inventory of the farmer with user_id = 0 until the page is reloaded
To Reproduce
Steps to reproduce the behavior:
Go to sign up
Create a new farmer
You will be displayed with products of user 0
Expected behavior
There should be no products displayed
Priority
Medium
Timeline
1 week
Status
Being worked on
Additional context
We know the issue is the database is being queried before the new user has been saved to the database. We just need to implement code that will prevent this.
Describe the bug Upon registering as a farmer you are shown the inventory of the farmer with user_id = 0 until the page is reloaded
To Reproduce Steps to reproduce the behavior:
Expected behavior There should be no products displayed
Priority Medium
Timeline 1 week
Status Being worked on
Additional context We know the issue is the database is being queried before the new user has been saved to the database. We just need to implement code that will prevent this.