diff options
author | Joris | 2016-03-28 18:04:25 +0200 |
---|---|---|
committer | Joris | 2016-03-28 18:04:25 +0200 |
commit | cc58377a48d13ef85cedb5ec0e19eb8b879dd497 (patch) | |
tree | 8a400e8e208f9ca7a94a3dad054bdad2b4a04b0f /src/client/elm/LoggedIn/Home/Update.elm | |
parent | 166cd04e4b28770ede854dafc9ae30eae64102fe (diff) |
Compute payment count client side
Diffstat (limited to 'src/client/elm/LoggedIn/Home/Update.elm')
-rw-r--r-- | src/client/elm/LoggedIn/Home/Update.elm | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/client/elm/LoggedIn/Home/Update.elm b/src/client/elm/LoggedIn/Home/Update.elm index 352c76b..ee0a7c3 100644 --- a/src/client/elm/LoggedIn/Home/Update.elm +++ b/src/client/elm/LoggedIn/Home/Update.elm @@ -80,7 +80,6 @@ update model action loggedInModel = , add = newAdd , account = loggedInModel.account , payments = newPayment :: loggedInModel.payments - , paymentsCount = loggedInModel.paymentsCount + 1 } , Effects.none ) @@ -117,7 +116,6 @@ update model action loggedInModel = ( { loggedInModel | account = loggedInModel.account , payments = deletePayment payment.id loggedInModel.payments - , paymentsCount = loggedInModel.paymentsCount - 1 } , Effects.none ) |