Skip to content

Commit

Permalink
Use currency formatter for amount
Browse files Browse the repository at this point in the history
...
  • Loading branch information
helje5 committed Sep 20, 2019
1 parent 520055e commit ae9db89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Shared/RuleModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ let ruleModel : RuleModel = [
// In here, we use a currency formatter for things like `rentalRate` and
// different duration formatters.
\.propertyKey == "rentalRate" || \.propertyKey == "replacementCost"
|| \.propertyKey == "amount"
=> \.formatter <= currencyFormatter,
\.propertyKey == "rentalDuration" && \.task != "edit"
=> \.formatter <= daysDurationFormatter,
Expand Down

0 comments on commit ae9db89

Please sign in to comment.