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

Commit

Permalink
fix: 🐛 fixed messages count in application list
Browse files Browse the repository at this point in the history
Application list was always showing 0 messages
  • Loading branch information
ziccardi authored and secondsun committed Sep 16, 2020
1 parent 3099149 commit 8134219
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@aerogear/unifiedpush-admin-client": "4.2.3",
"@fortawesome/fontawesome-free": "^5.13.0",
"@patternfly/react-core": "4.18.5",
"@patternfly/react-core": "^4.40.4",
"@types/react-router-dom": "^5.1.5",
"@types/react-syntax-highlighter": "^11.0.4",
"data-urls": "^2.0.0",
Expand Down
6 changes: 5 additions & 1 deletion src/application/ApplicationList/ApplicationListItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ export class ApplicationListItem extends Component<Props> {
/>
</ListItem>
<ListItem>
<Label text={'0 messages sent'} icon={<MessagesIcon />} />
<Label
text={`${this.props.app.metadata?.activity ||
0} messages sent`}
icon={<MessagesIcon />}
/>
</ListItem>
<ListItem>
<Label
Expand Down

0 comments on commit 8134219

Please sign in to comment.