Skip to content

Commit 85cbfd6

Browse files
committed
PROD-2619 #comment Fix the back button on the first page is opening the previously visited page, not the Start Work page
1 parent 7087c70 commit 85cbfd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src-ts/tools/work/work-self-service/intake-forms/bug-hunt/BugHuntIntakeForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const BugHuntIntakeForm: React.FC = () => {
5252
BugHuntFormConfig.buttons.primaryGroup[0].hidden = !isLoggedIn
5353
BugHuntFormConfig.buttons.primaryGroup[1].onClick = () => { setAction('submit') }
5454
if (BugHuntFormConfig.buttons.secondaryGroup) {
55-
BugHuntFormConfig.buttons.secondaryGroup[0].onClick = () => { navigate(-1) }
55+
BugHuntFormConfig.buttons.secondaryGroup[0].onClick = () => { navigate('/self-service/wizard') }
5656
}
5757

5858
const [challenge, setChallenge]: [Challenge | undefined, Dispatch<SetStateAction<Challenge | undefined>>] = useState()

0 commit comments

Comments
 (0)