Skip to content

Bug display correct farmer products #36

Description

@lucamne

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:

  1. Go to sign up
  2. Create a new farmer
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions