Skip to content

Commit

Permalink
fix: Disable button when there are no items to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
sonwit committed Sep 2, 2024
1 parent ac02342 commit 91fade2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export const OverviewPageContent = ({
{isEditable && (
<div className={classes.saveSection}>
<Button
disabled={loading}
disabled={loading || itemsToDelete.length === 0}
onClick={confirmRevoke}
color='success'
fullWidth={isSm}
Expand Down

0 comments on commit 91fade2

Please sign in to comment.