Skip to content

Commit d12b946

Browse files
committed
changes
1 parent 73b654b commit d12b946

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/pages/Debug/Report/DebugReportPage.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function DebugReportPage({
7676
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
7777
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
7878
const [isSelfTourViewed] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector});
79-
const {accountID: currentUserAccountID, email: currentUserLogin = ''} = useCurrentUserPersonalDetails();
79+
const {accountID: currentUserAccountID, login: currentUserLogin} = useCurrentUserPersonalDetails();
8080
const transactionID = DebugUtils.getTransactionID(report, reportActions);
8181
const isReportArchived = useReportIsArchived(reportID);
8282

@@ -87,7 +87,8 @@ function DebugReportPage({
8787

8888
const shouldDisplayViolations = !!getViolatingReportIDForRBRInLHN(report, transactionViolations);
8989
const hasViolations = !!shouldDisplayViolations;
90-
const {reason: reasonGBR, reportAction: reportActionGBR} = DebugUtils.getReasonAndReportActionForGBRInLHNRow(report, currentUserLogin, currentUserAccountID, isReportArchived) ?? {};
90+
const {reason: reasonGBR, reportAction: reportActionGBR} =
91+
DebugUtils.getReasonAndReportActionForGBRInLHNRow(report, currentUserLogin ?? '', currentUserAccountID, isReportArchived) ?? {};
9192
const {reason: reasonRBR, reportAction: reportActionRBR} =
9293
DebugUtils.getReasonAndReportActionForRBRInLHNRow(
9394
report,

0 commit comments

Comments
 (0)