Skip to content

Commit

Permalink
Fix bar size in CategoryWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVelarde authored Nov 27, 2020
1 parent f745c1b commit 20e5fc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
- Make OAuthLogin component responsive [#28](https://github.com/CartoDB/carto-react-lib/pull/28)
- Remove FilterTypes from API exports [#29](https://github.com/CartoDB/carto-react-lib/pull/29)
- Fix CategoryWidgetUI keeping the order for blocked categories [#32](https://github.com/CartoDB/carto-react-lib/pull/32)
- Fix bar size in CategoryWidget [#33](https://github.com/CartoDB/carto-react-lib/pull/33)


## 1.0.0-beta5 (2020-11-25)
- Fix addSource keeping optional credentials property in the payload [#24](https://github.com/CartoDB/carto-react-lib/pull/24)
Expand Down
2 changes: 1 addition & 1 deletion src/ui/widgets/CategoryWidgetUI.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ function CategoryWidgetUI(props) {
? value != null
? '100%'
: 0
: `${(value || 0 * 100) / maxValue}%`;
: `${((value || 0) * 100) / maxValue}%`;
},
[maxValue]
);
Expand Down

0 comments on commit 20e5fc4

Please sign in to comment.