You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon success of the report form submission, and no errors found. We should redirect to the NewReport page.
At a quick look we'll need to
useNavigate (from react router should work for us here I'd expect) if there are no errors in the ReportForm submit .then block
update the ReportForm test to check that this has been redirected to a fresh page (so we should be able to see the patient fields), probably can also then remove the redirect test from ReportForm.test.ts
Remove the result section in ReportForm, the setResult and their usages
Probably worth for now keeping on logging the bundle, as that could still be useful.
The text was updated successfully, but these errors were encountered:
Also intruiged for you to test in the front end what happens if we set the error modal during an error, and then redirect at the end of the .then block. I imagine that it won't render the modal? But if it does then that would be even more fun.
Upon success of the report form submission, and no errors found. We should redirect to the NewReport page.
At a quick look we'll need to
useNavigate
(from react router should work for us here I'd expect) if there are no errors in the ReportForm submit.then
blockThe text was updated successfully, but these errors were encountered: