feat: SW-1583 Enabled reward night in booking widget
This commit is contained in:
@@ -16,6 +16,7 @@ export default function Checkbox({
|
||||
name,
|
||||
children,
|
||||
registerOptions,
|
||||
hideError,
|
||||
}: React.PropsWithChildren<CheckboxProps>) {
|
||||
const { control } = useFormContext()
|
||||
const { field, fieldState } = useController({
|
||||
@@ -44,7 +45,7 @@ export default function Checkbox({
|
||||
</span>
|
||||
{children}
|
||||
</span>
|
||||
{fieldState.error ? (
|
||||
{fieldState.error && !hideError ? (
|
||||
<Caption className={styles.error} fontOnly>
|
||||
<InfoCircleIcon color="red" />
|
||||
{fieldState.error.message}
|
||||
|
||||
Reference in New Issue
Block a user