Skip to content

Commit

Permalink
Cleanly handle refresh on the submitted page
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Apr 15, 2024
1 parent 6b07baf commit a4c3976
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions divvy_onboarding_ux.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,9 @@ def submit() -> Union[Response, str]: # pylint: disable=too-many-branches
}
)

if session["user_state"] == "requested":
return render_template("submitted.html")

if session["user_state"] != "eligible":
raise Unauthorized("Not eligible")

Expand Down

0 comments on commit a4c3976

Please sign in to comment.