We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd1452c commit 7619d21Copy full SHA for 7619d21
1 file changed
src/pages/workspace/WorkspaceOverviewCurrencyPage.tsx
@@ -33,7 +33,7 @@ function WorkspaceOverviewCurrencyPage({policy}: WorkspaceOverviewCurrencyPagePr
33
const {translate} = useLocalize();
34
const {isBetaEnabled} = usePermissions();
35
const [isForcedToChangeCurrency] = useOnyx(ONYXKEYS.IS_FORCED_TO_CHANGE_CURRENCY, {canBeMissing: true});
36
- const [hasVBA] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {selector: (value) => value?.achData?.state === BankAccount.STATE.OPEN, canBeMissing: true});
+ const [hasVBA = false] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT, {selector: (value) => value?.achData?.state === BankAccount.STATE.OPEN, canBeMissing: true});
37
const onSelectCurrency = (item: CurrencyListItem) => {
38
if (!policy) {
39
return;
0 commit comments