We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52c65d2 commit 6379af3Copy full SHA for 6379af3
src/project-3.js
@@ -84,8 +84,8 @@ const sumUserPostLikes = (user) => {
84
85
const addCalculateDiscountPriceMethod = (storeItem) => {
86
storeItem.calculateDiscountPrice = () => {
87
- const discount = this.price * this.discountPercentage;
88
- return this.price - discount;
+ const discount = storeItem.price * storeItem.discountPercentage;
+ return storeItem.price - discount;
89
};
90
return storeItem;
91
0 commit comments