Skip to content

Commit

Permalink
fix(ui): use ternary instead of boolean expression as an expression w…
Browse files Browse the repository at this point in the history
…il result in a false text
  • Loading branch information
mvegter committed Jun 8, 2020
1 parent 0ff5b70 commit e9ab282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public/components/Post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const entry = (model, post, index, highlight) =>
margin: '5px',
},
}, [
h(`.w-20.shadow-level1${highlight && '.bg-gray-light'}`, {
h(`.w-20.shadow-level1${highlight ? '.bg-gray-light' : ''}`, {
style: { padding: '10px' },
}, [
h('table', [
Expand Down

0 comments on commit e9ab282

Please sign in to comment.