Skip to content

Commit

Permalink
chore: update notification messages to Spanish for cart actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Liendo committed Oct 16, 2024
1 parent 0d434d3 commit e91f850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/store/cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const storedCart = browser ? localStorage.getItem("cart") : null;
export const cart = writable<ProductCart[]>(JSON.parse(storedCart || "[]"));

export function addProduct(product: Product): void {
notifications.notifySuccess("Product added", "Cart");
notifications.notifySuccess("Producto agregado", "Carrito");
cart.update((cartProducts) => {
const index = cartProducts.findIndex(({ _id }) => _id === product._id);

Expand Down

0 comments on commit e91f850

Please sign in to comment.