Skip to content

[BUG] Camera workflow breaks the back button in BaseScreen #132

@julianrkung

Description

@julianrkung

Describe the bug
When the user finishes a camera workflow when filing out a form and presses the "Back" button on the top left of the screen, they're taken back to the camera screen rather than outside of whatever screen they were at before filling out the form.

We probably just need to pass the goBack parameter to BaseScreen and have it be during goBack. Should be a quick fix.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the "Create a Purchase Request" form
  2. Go through the workflow for creating a photo
  3. Press the top left back button and it takes you back to Camera screen instead of Inventory Main.

Expected behavior
It should take you back to Inventory Main.

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device Model: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]

Environment:
Which environment(s) is this bug located in?

  • local or development
  • production

If the bug is located in production, find the version number under Menu > Settings

  • Version [e.g. 1.1.0]

Additional context
Add any other context about the problem here.

CC: @julianrkung

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions