Skip to content

Commit

Permalink
update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Dec 6, 2023
1 parent e6b6ed8 commit cc68278
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/home/report/ReportActionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function ReportActionsView(props) {

const isFocused = useIsFocused();
const reportID = props.report.reportID;
const isNewestReportAction = lodashGet(props.reportActions[0], 'isNewestReportAction');
const hasNewestReportAction = lodashGet(props.reportActions[0], 'isNewestReportAction');

/**
* @returns {Boolean}
Expand Down Expand Up @@ -200,7 +200,7 @@ function ReportActionsView(props) {
const loadNewerChats = useMemo(
() =>
_.throttle(({distanceFromStart}) => {
if (props.isLoadingNewerReportActions || props.isLoadingInitialReportActions || isNewestReportAction) {
if (props.isLoadingNewerReportActions || props.isLoadingInitialReportActions || hasNewestReportAction) {
return;
}

Expand All @@ -222,7 +222,7 @@ function ReportActionsView(props) {
const newestReportAction = _.first(props.reportActions);
Report.getNewerActions(reportID, newestReportAction.reportActionID);
}, 500),
[props.isLoadingNewerReportActions, props.isLoadingInitialReportActions, props.reportActions, reportID, isNewestReportAction],
[props.isLoadingNewerReportActions, props.isLoadingInitialReportActions, props.reportActions, reportID, hasNewestReportAction],
);

/**
Expand Down

0 comments on commit cc68278

Please sign in to comment.