Skip to content

Commit

Permalink
fixes composer wobbling for new chat
Browse files Browse the repository at this point in the history
  • Loading branch information
ishpaul777 committed Apr 1, 2024
1 parent c877ebd commit 97c20b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ type ReportScreenProps = OnyxHOCProps & CurrentReportIDContextValue & ReportScre
function getReportID(route: ReportScreenNavigationProps['route']): string {
// The report ID is used in an onyx key. If it's an empty string, onyx will return
// a collection instead of an individual report.
return String(route.params?.reportID || '');
return String(route.params?.reportID || 0);
}

/**
Expand Down Expand Up @@ -143,7 +143,7 @@ function ReportScreen({
const styles = useThemeStyles();
const {translate} = useLocalize();
const {isSmallScreenWidth} = useWindowDimensions();
const reportIDFromRoute = getReportID(route);
const reportIDFromRoute = route?.params?.reportID ?? '';
const reportActionIDFromRoute = route?.params?.reportActionID ?? '';
const isFocused = useIsFocused();
const prevIsFocused = usePrevious(isFocused);
Expand Down

0 comments on commit 97c20b1

Please sign in to comment.