fix(SW-3085): restore missing form id
This commit is contained in:
@@ -12,6 +12,7 @@ import { Typography } from "@scandic-hotels/design-system/Typography"
|
|||||||
|
|
||||||
import { useEnterDetailsStore } from "@/stores/enter-details"
|
import { useEnterDetailsStore } from "@/stores/enter-details"
|
||||||
|
|
||||||
|
import { formId } from "@/components/HotelReservation/EnterDetails/Payment/PaymentClient"
|
||||||
import { isBookingCodeRate } from "@/components/HotelReservation/SelectRate/RoomsContainer/RateSummary/MobileSummary/utils"
|
import { isBookingCodeRate } from "@/components/HotelReservation/SelectRate/RoomsContainer/RateSummary/MobileSummary/utils"
|
||||||
import { formatPrice } from "@/utils/numberFormatting"
|
import { formatPrice } from "@/utils/numberFormatting"
|
||||||
|
|
||||||
@@ -31,13 +32,8 @@ export default function SummaryBottomSheet({
|
|||||||
const searchParams = useSearchParams()
|
const searchParams = useSearchParams()
|
||||||
const errorCode = searchParams.get("errorCode")
|
const errorCode = searchParams.get("errorCode")
|
||||||
|
|
||||||
const {
|
const { isSummaryOpen, toggleSummaryOpen, totalPrice, isSubmitting, rooms } =
|
||||||
isSummaryOpen,
|
useEnterDetailsStore((state) => ({
|
||||||
toggleSummaryOpen,
|
|
||||||
totalPrice,
|
|
||||||
isSubmitting,
|
|
||||||
rooms,
|
|
||||||
} = useEnterDetailsStore((state) => ({
|
|
||||||
isSummaryOpen: state.isSummaryOpen,
|
isSummaryOpen: state.isSummaryOpen,
|
||||||
toggleSummaryOpen: state.actions.toggleSummaryOpen,
|
toggleSummaryOpen: state.actions.toggleSummaryOpen,
|
||||||
totalPrice: state.totalPrice,
|
totalPrice: state.totalPrice,
|
||||||
@@ -140,6 +136,7 @@ export default function SummaryBottomSheet({
|
|||||||
typography="Body/Paragraph/mdBold"
|
typography="Body/Paragraph/mdBold"
|
||||||
isDisabled={isSubmitting}
|
isDisabled={isSubmitting}
|
||||||
isPending={isSubmitting}
|
isPending={isSubmitting}
|
||||||
|
form={formId}
|
||||||
>
|
>
|
||||||
{intl.formatMessage({
|
{intl.formatMessage({
|
||||||
defaultMessage: "Complete booking",
|
defaultMessage: "Complete booking",
|
||||||
|
|||||||
Reference in New Issue
Block a user