Skip to content

Commit 61e55b4

Browse files
committed
Fixes
1 parent 28003f0 commit 61e55b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/Search/SearchRejectReasonPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function SearchRejectReasonPage({route}: SearchRejectReasonPageProps) {
3030
const {translate} = useLocalize();
3131

3232
const [betas] = useOnyx(ONYXKEYS.BETAS);
33-
const {accountID: currentUserAccountID, email: currentUserLogin = ''} = useCurrentUserPersonalDetails();
33+
const {accountID: currentUserAccountID, login: currentUserLogin} = useCurrentUserPersonalDetails();
3434
// When coming from the report view, selectedTransactions is empty, build it from selectedTransactionIDs
3535
const selectedTransactionsForReject = useMemo(() => {
3636
if (route.name === SCREENS.SEARCH.MONEY_REQUEST_REPORT_REJECT_TRANSACTIONS && reportID) {
@@ -58,7 +58,7 @@ function SearchRejectReasonPage({route}: SearchRejectReasonPageProps) {
5858
allPolicies,
5959
allReports,
6060
currentUserAccountID,
61-
currentUserLogin,
61+
currentUserLogin ?? '',
6262
betas,
6363
);
6464
if (route.name === SCREENS.SEARCH.MONEY_REQUEST_REPORT_REJECT_TRANSACTIONS) {

0 commit comments

Comments
 (0)