Skip to content

Commit

Permalink
make report field date section consistent.
Browse files Browse the repository at this point in the history
Signed-off-by: krishna2323 <[email protected]>
  • Loading branch information
Krishna2323 committed Nov 27, 2024
1 parent b212764 commit 1d36289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libs/WorkspaceReportFieldUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getReportFieldInitialValue(reportField: PolicyReportField | null): stri
}

if (reportField.type === CONST.REPORT_FIELD_TYPES.DATE) {
return Localize.translateLocal('common.currentDate');
return Localize.translateLocal('common.initialValue');
}

return reportField.value ?? reportField.defaultValue;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function ReportFieldsSettingsPage({
style={[styles.moneyRequestMenuItem]}
titleStyle={styles.flex1}
title={WorkspaceReportFieldUtils.getReportFieldInitialValue(reportField)}
description={translate('common.initialValue')}
description={translate('common.date')}
shouldShowRightIcon={!isDateFieldType && !hasAccountingConnections}
interactive={!isDateFieldType && !hasAccountingConnections}
onPress={() => Navigation.navigate(ROUTES.WORKSPACE_EDIT_REPORT_FIELDS_INITIAL_VALUE.getRoute(policyID, reportFieldID))}
Expand Down

0 comments on commit 1d36289

Please sign in to comment.