Skip to content

Commit

Permalink
Merge pull request #65 from NextCafeteria/hotfix/first-test
Browse files Browse the repository at this point in the history
hotfix toping
  • Loading branch information
BangMach committed Aug 12, 2023
2 parents ae57626 + 5241682 commit 75b1d87
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/app/[lng]/pick-item-options/[itemId]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default function PickOptions({ params: { lng, itemId } }) {
t(optionId)
);
input.checked = true;
updateOption(customizationId, optionId);
}}
>
<input
Expand All @@ -186,22 +187,13 @@ export default function PickOptions({ params: { lng, itemId } }) {
selectedOptions[customizationId] ==
optionId
}
onChange={(e) => {
if (!isAvailable) {
return;
}
if (e.target.checked) {
updateOption(customizationId, optionId);
}
}}
/>
<label
className={
"pl-2 w-100 cursor-pointer" +
(!isAvailable ? " text-gray-400" : "")
}
htmlFor={t(option.name)}
onClick={() => {}}
>
{t(option.name)} (
{Number(option.price)?.toLocaleString(
Expand Down

0 comments on commit 75b1d87

Please sign in to comment.