Skip to content

Commit 0d1f566

Browse files
authored
Remove unneeded check due to optional chaining
1 parent 9a46596 commit 0d1f566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/crm/src/deals/OnlyMineInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const OnlyMineInput = (_: { alwaysOn: boolean; source: string }) => {
1212
if (typeof filterValues.sales_id !== 'undefined') {
1313
delete newFilterValues.sales_id;
1414
} else {
15-
newFilterValues.sales_id = identity && identity?.id;
15+
newFilterValues.sales_id = identity?.id;
1616
}
1717
setFilters(newFilterValues, displayedFilters);
1818
};

0 commit comments

Comments
 (0)