Merged in fix/SW-2887-complete-booking-button-always-enabled (pull request #2227)
fix(SW-2887): don't disable the booking button The complete button shouldn’t be disabled based on validation. This was already correct in desktop, but now it’s also correct in mobile. * fix(SW-2887): don't disable the booking button Approved-by: Tobias Johansson Approved-by: Christian Andolf
This commit is contained in:
@@ -155,7 +155,6 @@ export function createDetailsStore(
|
||||
booking: initialState.booking,
|
||||
breakfastPackages,
|
||||
canProceedToPayment: false,
|
||||
isSubmittingDisabled: false,
|
||||
isSubmitting: false,
|
||||
isSummaryOpen: false,
|
||||
lastRoom: initialState.booking.rooms.length - 1,
|
||||
@@ -415,13 +414,6 @@ export function createDetailsStore(
|
||||
preSubmitCallbacks: {},
|
||||
|
||||
actions: {
|
||||
setIsSubmittingDisabled(isSubmittingDisabled) {
|
||||
return set(
|
||||
produce((state: DetailsState) => {
|
||||
state.isSubmittingDisabled = isSubmittingDisabled
|
||||
})
|
||||
)
|
||||
},
|
||||
setIsSubmitting(isSubmitting) {
|
||||
return set(
|
||||
produce((state: DetailsState) => {
|
||||
|
||||
Reference in New Issue
Block a user