diff options
Diffstat (limited to 'src/client/elm/LoggedIn/View')
-rw-r--r-- | src/client/elm/LoggedIn/View/Format.elm (renamed from src/client/elm/LoggedIn/View/Price.elm) | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/elm/LoggedIn/View/Price.elm b/src/client/elm/LoggedIn/View/Format.elm index 2bfed23..7925a5c 100644 --- a/src/client/elm/LoggedIn/View/Price.elm +++ b/src/client/elm/LoggedIn/View/Format.elm @@ -1,4 +1,4 @@ -module LoggedIn.View.Price +module LoggedIn.View.Format ( price ) where @@ -8,13 +8,13 @@ import Model.Conf exposing (Conf) price : Conf -> Int -> String price conf amount = - ( formatInt amount + ( number amount ++ " " ++ conf.currency ) -formatInt : Int -> String -formatInt n = +number : Int -> String +number n = abs n |> toString |> toList |