Skip to content

Commit

Permalink
add logging to failing to parse cart
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysSullivan committed Oct 20, 2024
1 parent a025d26 commit c706357
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export async function getCart() {
try {
return cartSchema.parse(JSON.parse(cart.value));
} catch {
console.error("Failed to parse cart cookie");
return [];
}
}
Expand Down

0 comments on commit c706357

Please sign in to comment.