Skip to content

Commit

Permalink
fix: fetch the percent all the time in the cart from shop api
Browse files Browse the repository at this point in the history
  • Loading branch information
Plopix committed Jul 24, 2024
1 parent 926fcd4 commit f95b51e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions shared/application/use-cases/crystallize/read/fetchCart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const fetchCart = async (cartId: string, { apiClient }: Deps): Promise<Ca
taxAmount: true,
discounts: {
amount: true,
percent: true,
},
},
},
Expand Down
3 changes: 3 additions & 0 deletions shared/application/use-cases/crystallize/write/editCart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export const hydrateCart = async (
taxAmount: true,
discounts: {
amount: true,
percent: true,
},
},
},
Expand All @@ -62,6 +63,7 @@ export const hydrateCart = async (
taxAmount: true,
discounts: {
amount: true,
percent: true,
},
},
images: {
Expand All @@ -77,6 +79,7 @@ export const hydrateCart = async (
taxAmount: true,
discounts: {
amount: true,
percent: true,
},
currency: true,
},
Expand Down

0 comments on commit f95b51e

Please sign in to comment.