Skip to content

Commit

Permalink
fix: type error in SelectSchool within funnel.Render example from REA…
Browse files Browse the repository at this point in the history
…DME.md (#61)
  • Loading branch information
Lennon57 authored Sep 22, 2024
1 parent 6f10dff commit 7147668
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,16 @@ export function App() {
);
},
})}
SelectSchool={({ history }) => <SelectSchool onNext={(school) => history.push('EnterJoinDate', { school })} />}
SelectSchool={({ history }) => (
<SelectSchool
onNext={(school) =>
history.push('EnterJoinDate', (prev) => ({
...prev,
school
}))
}
/>
)}
SelectEmployee={({ history }) => (
<SelectEmployee
onNext={(company) =>
Expand Down

0 comments on commit 7147668

Please sign in to comment.