Skip to content

Commit

Permalink
Merge pull request #38306 from VickyStash/ts-migration/clean-up-perso…
Browse files Browse the repository at this point in the history
…nalDetails-type

Clean up the `PersonalDetails` type
  • Loading branch information
puneetlath authored Mar 15, 2024
2 parents b84ff64 + 2fbd6a8 commit ea1bbc3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function ReportFooter({
if (email) {
assignee = Object.values(allPersonalDetails).find((value) => value?.login === email) ?? {};
}
Task.createTaskAndNavigate(report.reportID, title, '', assignee?.login ?? '', assignee.accountID, assignee.assigneeChatReport, report.policyID);
Task.createTaskAndNavigate(report.reportID, title, '', assignee?.login ?? '', assignee.accountID, undefined, report.policyID);
return true;
},
[allPersonalDetails, report.policyID, report.reportID],
Expand Down
4 changes: 0 additions & 4 deletions src/types/onyx/PersonalDetails.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type {AvatarSource} from '@libs/UserUtils';
import type TIMEZONES from '@src/TIMEZONES';
import type * as OnyxCommon from './OnyxCommon';
import type Report from './Report';

type SelectedTimezone = (typeof TIMEZONES)[number];

Expand Down Expand Up @@ -80,9 +79,6 @@ type PersonalDetails = OnyxCommon.OnyxValueWithOfflineFeedback<{

/** Status of the current user from their personal details */
status?: Status;

/** Chat report with assignee of task */
assigneeChatReport?: Report;
}>;

type PersonalDetailsList = Record<string, PersonalDetails | null>;
Expand Down

0 comments on commit ea1bbc3

Please sign in to comment.