Skip to content

Commit 727d14b

Browse files
committed
Fixes
1 parent 181f233 commit 727d14b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/pages/domain/Members/DomainMemberVacationDelegatePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function DomainMemberVacationDelegatePage({route}: DomainMemberVacationDelegateP
2222
const {domainAccountID, accountID} = route.params;
2323
const {translate} = useLocalize();
2424

25-
const {email: currentUserLogin = ''} = useCurrentUserPersonalDetails();
25+
const {login: currentUserLogin} = useCurrentUserPersonalDetails();
2626

2727
const [vacationDelegate] = useOnyx(`${ONYXKEYS.COLLECTION.DOMAIN}${domainAccountID}`, {
2828
selector: vacationDelegateSelector(accountID),
@@ -46,7 +46,7 @@ function DomainMemberVacationDelegatePage({route}: DomainMemberVacationDelegateP
4646
return;
4747
}
4848

49-
setDomainVacationDelegate(domainAccountID, accountID, currentUserLogin, memberLogin, delegateLogin, vacationDelegate);
49+
setDomainVacationDelegate(domainAccountID, accountID, currentUserLogin ?? '', memberLogin, delegateLogin, vacationDelegate);
5050
Navigation.goBack(ROUTES.DOMAIN_MEMBER_DETAILS.getRoute(domainAccountID, accountID));
5151
};
5252

src/pages/iou/RejectReasonPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function RejectReasonPage({route}: RejectReasonPageProps) {
3333
const [reportPolicyID] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(reportID)}`, {selector: getReportPolicyID});
3434
const policy = usePolicy(reportPolicyID);
3535
const {superWideRHPRouteKeys} = useWideRHPState();
36-
const {accountID: currentUserAccountID, email: currentUserLogin = ''} = useCurrentUserPersonalDetails();
36+
const {accountID: currentUserAccountID, login: currentUserLogin} = useCurrentUserPersonalDetails();
3737
const [betas] = useOnyx(ONYXKEYS.BETAS);
3838
const {isDelegateAccessRestricted} = useDelegateNoAccessState();
3939
const {showDelegateNoAccessModal} = useDelegateNoAccessActions();
@@ -43,7 +43,7 @@ function RejectReasonPage({route}: RejectReasonPageProps) {
4343
return;
4444
}
4545

46-
const urlToNavigateBack = rejectMoneyRequest(transactionID, reportID, values.comment, policy, currentUserAccountID, currentUserLogin, betas);
46+
const urlToNavigateBack = rejectMoneyRequest(transactionID, reportID, values.comment, policy, currentUserAccountID, currentUserLogin ?? '', betas);
4747
removeTransaction(transactionID);
4848
// If the super wide rhp is not opened, dismiss the entire modal.
4949
if (superWideRHPRouteKeys.length > 0) {

0 commit comments

Comments
 (0)