Skip to content

Commit

Permalink
chore: small fix for sonar issues+3
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Feb 2, 2024
1 parent 7a99461 commit 5701c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdk/v2/destinations/rakuten/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const constructLineItems = (properties) => {
const amountList = products.map((product) => {
if (!product.amount) {
if (product?.price) {
return (product.quantity || 1) * product.price * 100;
return product.quantity * product.price * 100;
}
throw new InstrumentationError('Either amount or price is required for every product');
}
Expand Down

0 comments on commit 5701c59

Please sign in to comment.