Skip to content

Commit f5c8249

Browse files
committed
assigning-to-input-param: use inputValue as a basis for the first discount rule
1 parent f27488c commit f5c8249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/assigning-to-input-param/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function discount(inputValue, quantity) {
22
let result = inputValue;
3-
if (result > 50) result = result - 2;
3+
if (inputValue > 50) result = result - 2;
44
if (quantity > 100) result = result - 1;
55
return result;
66
}

0 commit comments

Comments
 (0)