Skip to content

Commit

Permalink
create a stable default props for ReportFooter
Browse files Browse the repository at this point in the history
  • Loading branch information
rezkiy37 committed May 22, 2024
1 parent e8ae3c5 commit 09cb9c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/home/report/ReportFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ type ReportFooterProps = ReportFooterOnyxProps & {
onComposerBlur: () => void;
};

const defaultReport = {reportID: '0'};

function ReportFooter({
lastReportAction,
pendingAction,
session,
report = {reportID: '0'},
report = defaultReport,
reportNameValuePairs,
shouldShowComposeInput = false,
isEmptyChat = true,
Expand Down

0 comments on commit 09cb9c1

Please sign in to comment.