diff --git a/components/cart/actions.ts b/components/cart/actions.ts
index 7de539550..ea39c38a4 100644
--- a/components/cart/actions.ts
+++ b/components/cart/actions.ts
@@ -1,13 +1,7 @@
'use server';
import { TAGS } from 'lib/constants';
-import {
- addToCart,
- createCart,
- getCart,
- removeFromCart,
- updateCart,
-} from 'lib/shopify';
+import { addToCart, createCart, getCart, removeFromCart, updateCart } from 'lib/shopify';
import { revalidateTag } from 'next/cache';
import { cookies } from 'next/headers';
@@ -30,9 +24,7 @@ export async function addItem(prevState: any, selectedVariantId: string) {
}
try {
- await addToCart(cartId, [
- { merchandiseId: selectedVariantId, quantity: 1 }
- ]);
+ await addToCart(cartId, [{ merchandiseId: selectedVariantId, quantity: 1 }]);
revalidateTag(TAGS.cart);
} catch (e) {
return 'Error adding item to cart';
@@ -81,7 +73,7 @@ export async function updateItemQuantity(
{
id: lineId,
merchandiseId: variantId,
- quantity,
+ quantity
}
]);
revalidateTag(TAGS.cart);
diff --git a/components/cart/add-to-cart.tsx b/components/cart/add-to-cart.tsx
index c8907a520..87cb54787 100644
--- a/components/cart/add-to-cart.tsx
+++ b/components/cart/add-to-cart.tsx
@@ -58,11 +58,7 @@ function SubmitButton({
})}
>
- {pending ? (
-
- ) : (
-
- )}
+ {pending ?
:
}
Add To Cart
@@ -89,10 +85,7 @@ export function AddToCart({
return (
diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx
index 23c5a0d00..6c60e6959 100644
--- a/components/layout/footer.tsx
+++ b/components/layout/footer.tsx
@@ -59,7 +59,7 @@ export default async function Footer() {
Designed in California
- Crafted by ▲ Vercel
+ Crafted by ▲ Vercel
diff --git a/components/layout/search/filter/index.tsx b/components/layout/search/filter/index.tsx
index 7365d226d..33a36c6da 100644
--- a/components/layout/search/filter/index.tsx
+++ b/components/layout/search/filter/index.tsx
@@ -19,7 +19,11 @@ export default function FilterList({ list, title }: { list: ListItem[]; title?:
return (
<>