Skip to content

Commit

Permalink
lint(tables): ensure pure boolean logical comparison in RowCheckbox
Browse files Browse the repository at this point in the history
  • Loading branch information
ivangabriele committed Sep 25, 2024
1 parent 491a8c6 commit a2bd958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tables/TableWithSelectableRows/RowCheckbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function RowCheckbox({ onChange, ...nativeProps }: RowCheckboxProps & HTM

return (
<RestyledRsuiteCheckbox
$isChecked={nativeProps.checked || nativeProps.indeterminate}
$isChecked={!!nativeProps.checked || !!nativeProps.indeterminate}
$isDisabled={nativeProps.disabled}
$isReadOnly={nativeProps.readOnly}
{...nativeProps}
Expand Down

0 comments on commit a2bd958

Please sign in to comment.