Skip to content

Commit

Permalink
UIU-1644 correctly show payment details (#1342)
Browse files Browse the repository at this point in the history
After submitting a payment in the fee-fine modal, the payment details 
would not be displayed in the fee-fine details table.

Refs UIU-1644

Co-authored-by: Maxim Didenko <[email protected]>
  • Loading branch information
zburke and maximdidenkoepam authored Jun 4, 2020
1 parent bb1ba9b commit 1ba8b90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change history for ui-users

## 3.0.5 (IN PROGRESS)

* Fee/Fine Details is not refreshing, which may result in user entering duplicate actions. Fixes UIU-1644.

## [3.0.4](https://github.com/folio-org/ui-users/tree/v3.0.4) (2020-04-28)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v3.0.3...v3.0.4)

Expand Down
3 changes: 2 additions & 1 deletion src/views/AccountDetails/AccountDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class AccountDetails extends React.Component {
resources,
} = props;

const accountActivity = (resources.accountActions || {}).records || [];
const accountActivity = _.uniqBy(resources?.accountActions?.records || [], action => action.id);
const sortData = _.orderBy(accountActivity, ['dateAction'], ['desc']);
const balance = (sortData[0] || {}).balance;
let paymentStatus;
Expand Down Expand Up @@ -527,6 +527,7 @@ class AccountDetails extends React.Component {
// perfectly well without them. ¯\_(ツ)_/¯
// this.getAccountActions();
// handleAddRecords();
this.props.mutator.accountActions.GET();
}}
/>

Expand Down

0 comments on commit 1ba8b90

Please sign in to comment.