feat(SW-791): make confirmation page dynamic
This commit is contained in:
@@ -38,7 +38,7 @@ interface EnterDetailsState {
|
||||
step: StepEnum,
|
||||
updatedData?: Record<
|
||||
string,
|
||||
string | boolean | BreakfastPackage | BedTypeSchema
|
||||
string | boolean | number | BreakfastPackage | BedTypeSchema
|
||||
>
|
||||
) => void
|
||||
setCurrentStep: (step: StepEnum) => void
|
||||
@@ -157,7 +157,6 @@ export function initEditDetailsState(
|
||||
const nextStep =
|
||||
state.steps[state.steps.indexOf(state.currentStep) + 1]
|
||||
|
||||
// @ts-expect-error: ts has a hard time understanding that "false | true" equals "boolean"
|
||||
state.userData = {
|
||||
...state.userData,
|
||||
...updatedData,
|
||||
|
||||
Reference in New Issue
Block a user