Skip to content

Commit

Permalink
chore: annotations, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
VariableVic committed Jul 4, 2024
1 parent 09118b8 commit 2272cc0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 4 additions & 0 deletions src/lib/data/products.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ export const getProductsList = cache(async function ({
})
})

/**
* This will fetch 100 products to the Next.js cache and sort them based on the sortBy parameter.
* It will then return the paginated products based on the page and limit parameters.
*/
export const getProductsListWithSort = cache(async function ({
page = 0,
queryParams,
Expand Down
4 changes: 0 additions & 4 deletions src/modules/checkout/components/shipping/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ const Shipping: React.FC<ShippingProps> = ({
</RadioGroup>
</div>

<ErrorMessage
error={cart.shipping_methods?.map((gc) => gc.id).toString()}
/>

<ErrorMessage
error={error}
data-testid="delivery-option-error-message"
Expand Down
2 changes: 1 addition & 1 deletion src/modules/store/templates/paginated-products.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default async function PaginatedProducts({
countryCode: string
}) {
const queryParams: PaginatedProductsParams = {
limit: 100,
limit: 12,
}

if (collectionId) {
Expand Down

0 comments on commit 2272cc0

Please sign in to comment.