Skip to content

Commit

Permalink
Fixed counting all rides for Smart 50 rate
Browse files Browse the repository at this point in the history
  • Loading branch information
jschirrmacher committed Sep 25, 2019
1 parent 3102588 commit 5e74bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/calculator.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
var prices = {
[text2Currency(form.elements.normal.value) * rides]: 'Normaltarif',
[discountedPrice(text2Currency(form.elements.flex.value), rides)]: 'Smart Flex',
[text2Currency(form.elements.flex.value) / 2 + 1000]: 'Smart 50'
[text2Currency(form.elements.flex.value) / 2 * rides + 1000]: 'Smart 50'
}

var min = Math.min(...Object.keys(prices).map(parseFloat))
Expand Down

0 comments on commit 5e74bfb

Please sign in to comment.