Skip to content

Commit

Permalink
Fixes TypeScript errors. (vercel#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotny authored Apr 21, 2023
1 parent 8ff670d commit e3785d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const metadata = {
openGraph: {
images: [
{
url: `/api/og?title=${encodeURIComponent(process.env.SITE_NAME)}`,
url: `/api/og?title=${encodeURIComponent(process.env.SITE_NAME || '')}`,
width: 1200,
height: 630
}
Expand Down
5 changes: 2 additions & 3 deletions lib/shopify/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,11 @@ export async function getCollection(handle: string): Promise<Collection | undefi
return reshapeCollection(res.body.data.collection);
}

export async function getCollectionProducts(handle: string, limit?: number): Promise<Product[]> {
export async function getCollectionProducts(handle: string): Promise<Product[]> {
const res = await shopifyFetch<ShopifyCollectionProductsOperation>({
query: getCollectionProductsQuery,
variables: {
handle,
first: limit
handle
}
});

Expand Down

0 comments on commit e3785d0

Please sign in to comment.