Skip to content

Commit

Permalink
UIU-2446 correctly show fee/fine to unprivileged user (#1904)
Browse files Browse the repository at this point in the history
This was subtle. In JSX, `<>{value}</>` returns a component, but in
plain ol' JS, `{value}` returns an object. Here, we need either a
component or a primitive, but we got an object. Whoops.

Introduced in #1613.

Refs UIU-2446
  • Loading branch information
zburke committed Oct 26, 2021
1 parent 7c4a8ff commit 611c2b5
Show file tree
Hide file tree
Showing 2 changed files with 5 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

## 7.something (IN PROGRESS)

* Correctly show fee/fine for users without `ui-users.accounts` permission. Refs UIU-2446.

## [7.0.1](https://github.com/folio-org/ui-users/tree/v7.0.1) (2021-10-07)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v6.1.0...v7.0.1)

Expand Down
2 changes: 1 addition & 1 deletion src/views/LoanDetails/LoanDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ class LoanDetails extends React.Component {
{ value }
</button>
:
{ value };
value;

return <>{ valueDisplay }<br />{ suspendedMessage }</>;
}
Expand Down

0 comments on commit 611c2b5

Please sign in to comment.