Fix typo in a comment (#1130)

This commit is contained in:
Kanji Yomoda
2023-07-31 21:47:02 +09:00
committed by GitHub
parent 7ae036b385
commit 45afbc548e

View File

@@ -25,7 +25,7 @@ export default function CartModal({ cart }: { cart: Cart | undefined }) {
const closeCart = () => setIsOpen(false);
useEffect(() => {
// Open cart modal when when quantity changes.
// Open cart modal when quantity changes.
if (cart?.totalQuantity !== quantityRef.current) {
// But only if it's not already open (quantity also changes when editing items in cart).
if (!isOpen) {