fix: booking code and reward night messages are now displayed correctly
also fixed an incorrect css value
This commit is contained in:
@@ -12,6 +12,7 @@ import { REDEMPTION } from "@/constants/booking"
|
||||
import Modal from "@/components/Modal"
|
||||
import Button from "@/components/TempDesignSystem/Button"
|
||||
import Checkbox from "@/components/TempDesignSystem/Form/Checkbox"
|
||||
import { getErrorMessage } from "@/components/TempDesignSystem/Form/Input/errors"
|
||||
import Caption from "@/components/TempDesignSystem/Text/Caption"
|
||||
|
||||
import { RemoveExtraRooms } from "../BookingCode"
|
||||
@@ -125,10 +126,7 @@ export default function RewardNight() {
|
||||
color="Icon/Feedback/Information"
|
||||
className={styles.errorIcon}
|
||||
/>
|
||||
{intl.formatMessage({
|
||||
// eslint-disable-next-line formatjs/enforce-default-message
|
||||
defaultMessage: redemptionErr.message,
|
||||
})}
|
||||
{getErrorMessage(intl, redemptionErr.message)}
|
||||
</Caption>
|
||||
{isMultiRoomError ? <RemoveExtraRooms /> : null}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user