Skip to content

Commit 6379af3

Browse files
committed
Fix a broken test
1 parent 52c65d2 commit 6379af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/project-3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ const sumUserPostLikes = (user) => {
8484

8585
const addCalculateDiscountPriceMethod = (storeItem) => {
8686
storeItem.calculateDiscountPrice = () => {
87-
const discount = this.price * this.discountPercentage;
88-
return this.price - discount;
87+
const discount = storeItem.price * storeItem.discountPercentage;
88+
return storeItem.price - discount;
8989
};
9090
return storeItem;
9191
};

0 commit comments

Comments
 (0)