Skip to content

Commit

Permalink
Discussion - agree function readability (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky authored Nov 11, 2023
1 parent d27e21d commit 0a089ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Problems/Discussion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const Discussion: FC<DiscussionProps> = ({problemId, problemNumber, close

const close = () => setDeleteDialogId(undefined)
const agree = () => {
deleteDialogId !== undefined ? confirmDeleteComment(deleteDialogId) : undefined
if (deleteDialogId !== undefined) confirmDeleteComment(deleteDialogId)
close()
}

Expand Down

0 comments on commit 0a089ca

Please sign in to comment.