Skip to content

Commit

Permalink
Fix lint error no-unused-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminleonard committed Oct 10, 2024
1 parent 1d5ad81 commit e659493
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/pages/project/instances/actions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ export const useMakeInstanceActions = (
{
label: 'Resize',
onActivate: () => {
options.onResizeClick && options.onResizeClick(instance)
if (options.onResizeClick) {
options.onResizeClick(instance)
}
},
disabled: !instanceCan.update(instance) && (
<>Only {fancifyStates(instanceCan.update.states)} instances can be resized</>
Expand Down

0 comments on commit e659493

Please sign in to comment.