Skip to content

Commit 2e1bd9f

Browse files
committed
Minor improvement
1 parent 80cff7c commit 2e1bd9f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/MoneyRequestReportView/MoneyRequestReportTransactionsNavigation.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ import useOnyx from '@hooks/useOnyx';
55
import {clearActiveTransactionThreadIDs} from '@libs/actions/TransactionThreadNavigation';
66
import Navigation from '@navigation/Navigation';
77
import navigationRef from '@navigation/navigationRef';
8-
import CONST from '@src/CONST';
98
import ONYXKEYS from '@src/ONYXKEYS';
109
import ROUTES from '@src/ROUTES';
1110
import SCREENS from '@src/SCREENS';
11+
import getEmptyArray from '@src/types/utils/getEmptyArray';
1212

1313
type MoneyRequestReportRHPNavigationButtonsProps = {
1414
currentReportID: string;
1515
};
1616

1717
function MoneyRequestReportTransactionsNavigation({currentReportID}: MoneyRequestReportRHPNavigationButtonsProps) {
18-
const [reportIDsList = CONST.EMPTY_ARRAY] = useOnyx(ONYXKEYS.TRANSACTION_THREAD_NAVIGATION_REPORT_IDS, {
18+
const [reportIDsList = getEmptyArray<string>()] = useOnyx(ONYXKEYS.TRANSACTION_THREAD_NAVIGATION_REPORT_IDS, {
1919
canBeMissing: true,
2020
});
2121

0 commit comments

Comments
 (0)