Skip to content

Commit

Permalink
discussion agree function readability
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrembecky committed Nov 11, 2023
1 parent d27e21d commit c1cb2ee
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 c1cb2ee

Please sign in to comment.