Skip to content

Commit

Permalink
fix(product page): wait for getProduct
Browse files Browse the repository at this point in the history
  • Loading branch information
dhmacs committed Jan 11, 2024
1 parent 386b2a1 commit 6fc1a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/models/product/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ export async function findProduct({

return (
getIFixitRedirect() ??
getProduct({
(await getProduct({
shopifyProduct: shopifyQueryResponse.product,
strapiProduct: strapiQueryResponse.products?.data[0],
iFixitProduct: iFixitQueryResponse,
}) ??
})) ??
getShopifyRedirect()
);

Expand Down

0 comments on commit 6fc1a94

Please sign in to comment.