diff --git a/lib/shopify/index.ts b/lib/shopify/index.ts index f64be61ce..cdbcdce40 100644 --- a/lib/shopify/index.ts +++ b/lib/shopify/index.ts @@ -282,10 +282,10 @@ const reshapeCategory = (category: PayloadCategory): Collection => { return { handle: category.id, title: category.title, - description: category.title, + description: category.description!, seo: { title: category.title, - description: category.title + description: category.description! }, path: `/search/${category.id}`, updatedAt: category.updatedAt diff --git a/lib/shopify/payload-types.ts b/lib/shopify/payload-types.ts index e938b4f7d..c4842c310 100644 --- a/lib/shopify/payload-types.ts +++ b/lib/shopify/payload-types.ts @@ -68,6 +68,7 @@ export interface Post { export interface Category { id: string; title: string; + description?: string | null; updatedAt: string; createdAt: string; } @@ -175,7 +176,6 @@ export interface Product { */ export interface Cart { id: string; - name: string; totalAmount?: number | null; user?: (string | null) | User; lines?: