Skip to content

Commit

Permalink
remove redundant optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
pasyukevich committed Mar 12, 2024
1 parent 2524978 commit 4e52920
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/tasks/NewTaskPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ function NewTaskPage({task, reports, personalDetails}: NewTaskPageProps) {
return;
}

if (!task?.title) {
if (!task.title) {
setErrorMessage('newTaskPage.pleaseEnterTaskName');
return;
}

if (!task?.shareDestination) {
if (!task.shareDestination) {
setErrorMessage('newTaskPage.pleaseEnterTaskDestination');
return;
}
Expand Down

0 comments on commit 4e52920

Please sign in to comment.