diff --git a/src/pages/cart/components/specialRequest/BottomSheet.tsx b/src/pages/cart/components/specialRequest/BottomSheet.tsx index 49c15c7..42d544e 100644 --- a/src/pages/cart/components/specialRequest/BottomSheet.tsx +++ b/src/pages/cart/components/specialRequest/BottomSheet.tsx @@ -1,6 +1,6 @@ import { Button, Input } from "antd"; import { ProBottomSheet } from "components/ProBottomSheet/ProBottomSheet.tsx"; -import { useEffect, useState } from "react"; +import { useState } from "react"; import { useTranslation } from "react-i18next"; const { TextArea } = Input; @@ -21,10 +21,6 @@ export function BottomSheet({ const { t } = useTranslation(); const [value, setValue] = useState(initialValue); - useEffect(() => { - setValue(initialValue); - }, [initialValue]); - const handleSave = () => { onSave(value); onClose(); diff --git a/src/pages/product/components/ProductFooter.tsx b/src/pages/product/components/ProductFooter.tsx index 2ab72c0..04143ec 100644 --- a/src/pages/product/components/ProductFooter.tsx +++ b/src/pages/product/components/ProductFooter.tsx @@ -126,11 +126,9 @@ export default function ProductFooter({ width: "100%", }} > - + - {!isDesktop && ( + {!isDesktop && isSpecialRequestOpen && (