Skip to content

Commit

Permalink
minor modification
Browse files Browse the repository at this point in the history
  • Loading branch information
Dem13n committed Jul 25, 2021
1 parent 412b608 commit b96e84b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 18 deletions.
2 changes: 1 addition & 1 deletion js/dist/forum.js

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

2 changes: 1 addition & 1 deletion js/dist/forum.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/src/forum/components/CardItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class cardItem extends Component {
: ''}

<div {...attrs}>
{settings.Views === 1 && flarum.extensions['flarumite-simple-discussion-views']
{settings.Views === 1 && !isNaN(discussion.views())
? <div className="discussionViews">
{icon('fas fa-eye', {className: 'icon'})}
{discussion.views()}
Expand Down
Loading

0 comments on commit b96e84b

Please sign in to comment.