preference fix

This commit is contained in:
unknown 2026-03-04 09:42:27 +05:30
parent 13dd50a1ea
commit 3e9b910616
1 changed files with 14 additions and 6 deletions

View File

@ -549,8 +549,12 @@ const PreferenceList = () => {
<>
<Form.Item name="kiosktimelimittype" label="How would you like to apply the time restriction?">
<Radio.Group onChange={() => formRef.current?.setFieldsValue({ maxtime: undefined })}>
{allSettingsMap['minutes'] !== undefined && (
<Radio value="minutes">Minutes</Radio>
)}
{allSettingsMap['hours'] !== undefined && (
<Radio value="hours">Hours</Radio>
)}
</Radio.Group>
</Form.Item>
@ -739,8 +743,12 @@ const PreferenceList = () => {
<>
<Form.Item name="quantityrestrictiontype" label="How would you like to apply the quantity restriction?">
<Radio.Group onChange={() => formRef.current?.setFieldsValue({ maxquantity: undefined })}>
{allSettingsMap['overalllimit'] !== undefined && (
<Radio value="overall">Overall Order Quantity</Radio>
)}
{allSettingsMap['itemwiselimit'] !== undefined && (
<Radio value="itemwise">Item-wise Quantity</Radio>
)}
</Radio.Group>
</Form.Item>