We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ea081f commit 8bd70a3Copy full SHA for 8bd70a3
1 file changed
src/libs/SearchUIUtils.ts
@@ -1957,7 +1957,7 @@ function getReportSections({
1957
const policyFromKey = getPolicyFromKey(data, reportItem);
1958
const policy = policies?.[`${ONYXKEYS.COLLECTION.POLICY}${reportItem?.policyID ?? String(CONST.DEFAULT_NUMBER_ID)}`] ?? policyFromKey;
1959
1960
- const shouldShowStatusAsPending = isOffline && reportItem?.pendingFields?.nextStep === CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE;
+ const shouldShowStatusAsPending = !!isOffline && reportItem?.pendingFields?.nextStep === CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE;
1961
1962
const hasAnyViolationsForReport = hasAnyViolations(
1963
reportItem.reportID,
0 commit comments