aboutsummaryrefslogtreecommitdiff
path: root/src/client/elm/Update/LoggedIn/Account.elm
diff options
context:
space:
mode:
authorJoris2015-12-30 00:28:41 +0100
committerJoris2015-12-30 00:32:44 +0100
commite32a9126ae7fd7f9596dd08b64ecab8644d994bd (patch)
tree8680faa00c624b81052f3617e6baf7ff8ea9645d /src/client/elm/Update/LoggedIn/Account.elm
parenta7db22556b91bc7c499e010b4c051f4442ad8ce2 (diff)
downloadbudget-e32a9126ae7fd7f9596dd08b64ecab8644d994bd.tar.gz
budget-e32a9126ae7fd7f9596dd08b64ecab8644d994bd.tar.bz2
budget-e32a9126ae7fd7f9596dd08b64ecab8644d994bd.zip
Upgrade to elm 0.16.0
Diffstat (limited to 'src/client/elm/Update/LoggedIn/Account.elm')
-rw-r--r--src/client/elm/Update/LoggedIn/Account.elm16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/client/elm/Update/LoggedIn/Account.elm b/src/client/elm/Update/LoggedIn/Account.elm
index cf4c834..c7a66dd 100644
--- a/src/client/elm/Update/LoggedIn/Account.elm
+++ b/src/client/elm/Update/LoggedIn/Account.elm
@@ -25,11 +25,11 @@ updateAccount : AccountAction -> Account -> Account
updateAccount action account =
case action of
ToggleDetail ->
- { account | visibleDetail <- not account.visibleDetail }
+ { account | visibleDetail = not account.visibleDetail }
UpdatePayer userId creation amountDiff ->
- { account | payers <- updatePayers account.payers userId creation amountDiff }
+ { account | payers = updatePayers account.payers userId creation amountDiff }
ToggleIncomeEdition ->
- { account | incomeEdition <-
+ { account | incomeEdition =
if isJust account.incomeEdition
then Nothing
else Just (initIncomeEdition (Maybe.withDefault 0 (getCurrentIncome account)))
@@ -37,28 +37,28 @@ updateAccount action account =
UpdateIncomeEdition income ->
case account.incomeEdition of
Just incomeEdition ->
- { account | incomeEdition <- Just { incomeEdition | income <- income } }
+ { account | incomeEdition = Just { incomeEdition | income = income } }
Nothing ->
account
UpdateEditionError error ->
case account.incomeEdition of
Just incomeEdition ->
- { account | incomeEdition <- Just { incomeEdition | error <- Just error } }
+ { account | incomeEdition = Just { incomeEdition | error = Just error } }
Nothing ->
account
UpdateIncome currentTime amount ->
{ account
- | payers <-
+ | payers =
account.payers
|> Dict.update account.me (\mbPayer ->
case mbPayer of
Just payer ->
Just
{ payer
- | incomes <- payer.incomes ++ [{ creation = currentTime, amount = amount }]
+ | incomes = payer.incomes ++ [{ creation = currentTime, amount = amount }]
}
Nothing ->
Nothing
)
- , incomeEdition <- Nothing
+ , incomeEdition = Nothing
}