Skip to content

Commit

Permalink
refactor: remove assignments within expressions
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
chessurisme and coderabbitai[bot] authored Jul 29, 2024
1 parent f7fb2af commit 685d4b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/components/checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,12 @@ class Checkbox {
}

#changeIcon(icon, state) {
return state === 'true'
? (icon.dataset.lucide = 'square-check')
: (icon.dataset.lucide = 'square')
if (state === 'true') {
icon.dataset.lucide = 'square-check'
} else {
icon.dataset.lucide = 'square'
}
return icon.dataset.lucide
}

#createIcon() {
Expand Down

0 comments on commit 685d4b5

Please sign in to comment.