Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
fix selector (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
moonlight8978 authored Jun 20, 2019
1 parent e6b058c commit 1c80304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db/db.selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const addPayment = ({ date, month, year }, payment) => db => {
...(getIn(db.calendar, year, month) || {}),
[date]: {
total: total + payment.price,
payments: [payment.id, ...payments],
payments: [payment.id, ...payments.map(p => p.id)],
},
},
},
Expand Down

0 comments on commit 1c80304

Please sign in to comment.