Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type {CustomRendererProps, TPhrasing, TText} from 'react-native-render-ht
import {TNodeChildrenRenderer} from 'react-native-render-html';
import * as HTMLEngineUtils from '@components/HTMLEngineProvider/htmlEngineUtils';
import Text from '@components/Text';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import useEnterKeyHandler from '@hooks/useEnterKeyHandler';
import useOnyx from '@hooks/useOnyx';
import useThemeStyles from '@hooks/useThemeStyles';
Expand All @@ -16,12 +17,13 @@ type ConciergeLinkRendererProps = CustomRendererProps<TText | TPhrasing>;
function ConciergeLinkRenderer({tnode, style}: ConciergeLinkRendererProps) {
const styles = useThemeStyles();
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails();

/**
* Simple wrapper to create a stable reference without passing event args to navigation function.
*/
const navigateToConciergeChat = () => {
navigateToConciergeChatAction(conciergeReportID, false);
navigateToConciergeChatAction(conciergeReportID, currentUserAccountID, false);
};

// Define link style based on context
Expand Down
6 changes: 3 additions & 3 deletions src/components/ReportActionItem/MoneyRequestReceiptView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function MoneyRequestReceiptView({report, readonly = false, updatedTransaction,
const didReceiptScanSucceed = hasReceipt && didReceiptScanSucceedTransactionUtils(transaction);
const isInvoice = isInvoiceReport(moneyRequestReport);
const isChatReportArchived = useReportIsArchived(moneyRequestReport?.chatReportID);
const {login: currentUserLogin} = useCurrentUserPersonalDetails();
const {login: currentUserLogin, accountID: currentUserAccountID} = useCurrentUserPersonalDetails();

// Flags for allowing or disallowing editing an expense
// Used for non-restricted fields such as: description, category, tag, billable, etc...
Expand Down Expand Up @@ -267,7 +267,7 @@ function MoneyRequestReceiptView({report, readonly = false, updatedTransaction,
}
if (transaction?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD) {
if (chatReport?.reportID && getCreationReportErrors(chatReport)) {
navigateToConciergeChatAndDeleteReport(chatReport.reportID, conciergeReportID, true, true);
navigateToConciergeChatAndDeleteReport(chatReport.reportID, conciergeReportID, currentUserAccountID, true, true);
return;
}
if (parentReportAction) {
Expand Down Expand Up @@ -304,7 +304,7 @@ function MoneyRequestReceiptView({report, readonly = false, updatedTransaction,
if (isInNarrowPaneModal) {
Navigation.goBack();
}
navigateToConciergeChatAndDeleteReport(report.reportID, conciergeReportID, true, true);
navigateToConciergeChatAndDeleteReport(report.reportID, conciergeReportID, currentUserAccountID, true, true);
}
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/TaskView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ function TaskView({report, parentReport, action}: TaskViewProps) {
<OfflineWithFeedback
shouldShowErrorMessages
errors={report?.errorFields?.editTask ?? report?.errorFields?.createTask}
onClose={() => clearTaskErrors(report, conciergeReportID)}
onClose={() => clearTaskErrors(report, conciergeReportID, accountID)}
errorRowStyles={styles.ph5}
>
<Hoverable>
Expand Down
4 changes: 2 additions & 2 deletions src/components/WalletStatementModal/index.native.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ function WalletStatementModal({statementPageURL}: WalletStatementProps) {
return;
}

handleWalletStatementNavigation(conciergeReportID, type, url);
handleWalletStatementNavigation(conciergeReportID, session?.accountID, type, url);
} catch (error) {
console.error('Error parsing message from WebView:', error);
}
},
[conciergeReportID],
[conciergeReportID, session?.accountID],
);

return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/WalletStatementModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function WalletStatementModal({statementPageURL}: WalletStatementProps) {
const navigate = (event: MessageEvent<WalletStatementMessage>) => {
const {data} = event;
const {type, url} = data || {};
handleWalletStatementNavigation(conciergeReportID, type, url);
handleWalletStatementNavigation(conciergeReportID, session?.accountID, type, url);
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import type {Route} from '@src/ROUTES';
/**
* Handles navigation for wallet statement actions
*/
function handleWalletStatementNavigation(conciergeReportID: string | undefined, type?: string, url?: string): void {
function handleWalletStatementNavigation(conciergeReportID: string | undefined, currentUserAccountID: number | undefined, type?: string, url?: string): void {
if (!type || (type !== CONST.WALLET.WEB_MESSAGE_TYPE.STATEMENT && type !== CONST.WALLET.WEB_MESSAGE_TYPE.CONCIERGE)) {
return;
}

if (type === CONST.WALLET.WEB_MESSAGE_TYPE.CONCIERGE) {
navigateToConciergeChat(conciergeReportID);
navigateToConciergeChat(conciergeReportID, currentUserAccountID ?? CONST.DEFAULT_NUMBER_ID);
return;
}

Expand Down
4 changes: 3 additions & 1 deletion src/libs/actions/Link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,13 @@ Onyx.connectWithoutView({
});

let currentUserEmail = '';
let currentUserAccountID = -1;
// Use connectWithoutView since this is to open an external link and doesn't affect any UI
Onyx.connectWithoutView({
key: ONYXKEYS.SESSION,
callback: (value) => {
currentUserEmail = value?.email ?? '';
currentUserAccountID = value?.accountID ?? CONST.DEFAULT_NUMBER_ID;
},
});

Expand Down Expand Up @@ -333,7 +335,7 @@ function openReportFromDeepLink(url: string, reports: OnyxCollection<Report>, is
Navigation.navigate(lastAccessedReportRoute, {forceReplace: Navigation.getTopmostReportId() === reportID});
return;
}
navigateToConciergeChat(conciergeReportID, false, () => true);
navigateToConciergeChat(conciergeReportID, currentUserAccountID, false, () => true);
return;
}

Expand Down
25 changes: 16 additions & 9 deletions src/libs/actions/Report/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@
/** @deprecated This value is deprecated and will be removed soon after migration. Use the email from useCurrentUserPersonalDetails hook instead. */
let deprecatedCurrentUserLogin: string | undefined;

Onyx.connect({

Check warning on line 319 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.SESSION,
callback: (value) => {
// When signed out, val is undefined
Expand All @@ -330,7 +330,7 @@
},
});

Onyx.connect({

Check warning on line 333 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.CONCIERGE_REPORT_ID,
callback: (value) => (conciergeReportIDOnyxConnect = value),
});
Expand All @@ -338,7 +338,7 @@
// map of reportID to all reportActions for that report
const allReportActions: OnyxCollection<ReportActions> = {};

Onyx.connect({

Check warning on line 341 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT_ACTIONS,
callback: (actions, key) => {
if (!key || !actions) {
Expand All @@ -350,7 +350,7 @@
});

let allReports: OnyxCollection<Report>;
Onyx.connect({

Check warning on line 353 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
Expand All @@ -359,7 +359,7 @@
});

let allPersonalDetails: OnyxEntry<PersonalDetailsList> = {};
Onyx.connect({

Check warning on line 362 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
callback: (value) => {
allPersonalDetails = value ?? {};
Expand All @@ -374,7 +374,7 @@
});

let onboarding: OnyxEntry<Onboarding>;
Onyx.connect({

Check warning on line 377 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NVP_ONBOARDING,
callback: (val) => {
if (Array.isArray(val)) {
Expand All @@ -385,7 +385,7 @@
});

let deprecatedIntroSelected: OnyxEntry<IntroSelected> = {};
Onyx.connect({

Check warning on line 388 in src/libs/actions/Report/index.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.NVP_INTRO_SELECTED,
callback: (val) => (deprecatedIntroSelected = val),
});
Expand Down Expand Up @@ -3205,6 +3205,7 @@
*/
function navigateToConciergeChat(
conciergeReportID: string | undefined,
currentUserAccountID: number,
shouldDismissModal = false,
checkIfCurrentPageActive = () => true,
linkToOptions?: LinkToOptions,
Expand All @@ -3220,7 +3221,7 @@
if (!checkIfCurrentPageActive()) {
return;
}
navigateToAndOpenReport([CONST.EMAIL.CONCIERGE], deprecatedCurrentUserAccountID, shouldDismissModal);
navigateToAndOpenReport([CONST.EMAIL.CONCIERGE], currentUserAccountID, shouldDismissModal);
});
} else if (shouldDismissModal) {
Navigation.dismissModalWithReport({reportID: conciergeReportID, reportActionID});
Expand Down Expand Up @@ -3671,29 +3672,35 @@
/**
* @param reportID The reportID of the policy report (workspace room)
*/
function navigateToConciergeChatAndDeleteReport(reportID: string | undefined, conciergeReportID: string | undefined, shouldPopToTop = false, shouldDeleteChildReports = false) {
function navigateToConciergeChatAndDeleteReport(
reportID: string | undefined,
conciergeReportID: string | undefined,
currentUserAccountID: number,
shouldPopToTop = false,
shouldDeleteChildReports = false,
) {
// Dismiss the current report screen and replace it with Concierge Chat
if (shouldPopToTop) {
Navigation.popToSidebar();
} else {
Navigation.goBack();
}
navigateToConciergeChat(conciergeReportID, false);
navigateToConciergeChat(conciergeReportID, currentUserAccountID, false);
// eslint-disable-next-line @typescript-eslint/no-deprecated
InteractionManager.runAfterInteractions(() => {
deleteReport(reportID, shouldDeleteChildReports);
});
}

function clearCreateChatError(report: OnyxEntry<Report>, conciergeReportID: string | undefined) {
function clearCreateChatError(report: OnyxEntry<Report>, conciergeReportID: string | undefined, currentUserAccountID: number) {
const metaData = getReportMetadata(report?.reportID);
const isOptimisticReport = metaData?.isOptimisticReport;
if (report?.errorFields?.createChat && !isOptimisticReport) {
clearReportFieldKeyErrors(report.reportID, 'createChat');
return;
}

navigateToConciergeChatAndDeleteReport(report?.reportID, conciergeReportID, undefined, true);
navigateToConciergeChatAndDeleteReport(report?.reportID, conciergeReportID, currentUserAccountID, undefined, true);
}

/**
Expand Down Expand Up @@ -4027,7 +4034,7 @@
Onyx.set(ONYXKEYS.IS_CHECKING_PUBLIC_ROOM, false);
}

function navigateToMostRecentReport(currentReport: OnyxEntry<Report>, conciergeReportID: string | undefined) {
function navigateToMostRecentReport(currentReport: OnyxEntry<Report>, conciergeReportID: string | undefined, currentUserAccountID: number) {
const lastAccessedReportID = findLastAccessedReport(false, false, currentReport?.reportID)?.reportID;

if (lastAccessedReportID) {
Expand All @@ -4051,7 +4058,7 @@
Navigation.goBack();
}

navigateToConciergeChat(conciergeReportID, false, () => true, {forceReplace: true});
navigateToConciergeChat(conciergeReportID, currentUserAccountID, false, () => true, {forceReplace: true});
}
}

Expand Down Expand Up @@ -4121,7 +4128,7 @@
},
];

navigateToMostRecentReport(report, conciergeReportID);
navigateToMostRecentReport(report, conciergeReportID, currentUserAccountID);
API.write(WRITE_COMMANDS.LEAVE_GROUP_CHAT, {reportID}, {optimisticData, successData, failureData});
}

Expand Down Expand Up @@ -4230,7 +4237,7 @@
return;
}
// In other cases, the report is deleted and we should move the user to another report.
navigateToMostRecentReport(report, conciergeReportID);
navigateToMostRecentReport(report, conciergeReportID, currentUserAccountID);
}

function buildInviteToRoomOnyxData(report: Report, inviteeEmailsToAccountIDs: InvitedEmailsToAccountIDs, formatPhoneNumber: LocaleContextProps['formatPhoneNumber']) {
Expand Down
4 changes: 2 additions & 2 deletions src/libs/actions/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,7 @@ function canActionTask(
return sessionAccountID === taskReport?.ownerAccountID || sessionAccountID === getTaskAssigneeAccountID(taskReport, parentReportAction);
}

function clearTaskErrors(report: OnyxEntry<OnyxTypes.Report>, conciergeReportID: string | undefined) {
function clearTaskErrors(report: OnyxEntry<OnyxTypes.Report>, conciergeReportID: string | undefined, currentUserAccountID: number) {
const reportID = report?.reportID;
if (!reportID) {
return;
Expand All @@ -1283,7 +1283,7 @@ function clearTaskErrors(report: OnyxEntry<OnyxTypes.Report>, conciergeReportID:
if (report?.pendingFields?.createChat === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD) {
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.parentReportID}`, report.parentReportActionID ? {[report.parentReportActionID]: null} : {});

navigateToConciergeChatAndDeleteReport(reportID, conciergeReportID);
navigateToConciergeChatAndDeleteReport(reportID, conciergeReportID, currentUserAccountID);
return;
}

Expand Down
3 changes: 2 additions & 1 deletion src/pages/ConciergePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
import {confirmReadyToOpenApp} from '@libs/actions/App';
import {navigateToConciergeChat} from '@libs/actions/Report';
import Navigation from '@libs/Navigation/Navigation';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';

Expand All @@ -33,7 +34,7 @@ function ConciergePage() {
return;
}

navigateToConciergeChat(conciergeReportID, true, () => !isUnmounted.current);
navigateToConciergeChat(conciergeReportID, session.accountID ?? CONST.DEFAULT_NUMBER_ID, true, () => !isUnmounted.current);
});
} else {
Navigation.navigate(ROUTES.INBOX);
Expand Down
6 changes: 5 additions & 1 deletion src/pages/Debug/Report/DebugReportPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Button from '@components/Button';
import HeaderWithBackButton from '@components/HeaderWithBackButton';
import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import {useMemoizedLazyExpensifyIcons} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
Expand Down Expand Up @@ -70,6 +71,7 @@ function DebugReportPage({
const [priorityMode] = useOnyx(ONYXKEYS.NVP_PRIORITY_MODE);
const [betas] = useOnyx(ONYXKEYS.BETAS);
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails();
const transactionID = DebugUtils.getTransactionID(report, reportActions);
const isReportArchived = useReportIsArchived(reportID);

Expand Down Expand Up @@ -162,7 +164,7 @@ function DebugReportPage({
Debug.setDebugData(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, data);
}}
onDelete={() => {
navigateToConciergeChatAndDeleteReport(reportID, conciergeReportID, true, true);
navigateToConciergeChatAndDeleteReport(reportID, conciergeReportID, currentUserAccountID, true, true);
}}
validate={DebugUtils.validateReportDraftProperty}
>
Expand Down Expand Up @@ -223,6 +225,8 @@ function DebugReportPage({
transactionID,
translate,
icons.Eye,
currentUserAccountID,
conciergeReportID,
],
);

Expand Down
4 changes: 3 additions & 1 deletion src/pages/ReimbursementAccount/NonUSD/Finish/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import ScreenWrapper from '@components/ScreenWrapper';
import ScrollView from '@components/ScrollView';
import Section from '@components/Section';
import Text from '@components/Text';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import {useMemoizedLazyExpensifyIcons, useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
Expand All @@ -22,6 +23,7 @@ function Finish() {
const {shouldUseNarrowLayout} = useResponsiveLayout();
const icons = useMemoizedLazyExpensifyIcons(['NewWindow', 'Shield', 'ChatBubble']);
const illustrations = useMemoizedLazyIllustrations(['ConciergeBubble', 'ShieldYellow']);
const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails();

const [reimbursementAccount] = useOnyx(ONYXKEYS.REIMBURSEMENT_ACCOUNT);
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
Expand All @@ -30,7 +32,7 @@ function Finish() {
const handleBackButtonPress = () => {
Navigation.goBack();
};
const handleNavigateToConciergeChat = () => navigateToConciergeChat(conciergeReportID, true);
const handleNavigateToConciergeChat = () => navigateToConciergeChat(conciergeReportID, currentUserAccountID, true);

return (
<ScreenWrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import HeaderWithBackButton from '@components/HeaderWithBackButton';
import ScreenWrapper from '@components/ScreenWrapper';
import Text from '@components/Text';
import TextLink from '@components/TextLink';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
import useThemeStyles from '@hooks/useThemeStyles';
Expand Down Expand Up @@ -33,8 +34,9 @@ function ConnectBankAccount({onBackButtonPress, setShouldShowConnectedVerifiedBa
const [policy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${reimbursementAccount?.achData?.policyID}`);
const [account] = useOnyx(ONYXKEYS.ACCOUNT);
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails();

const handleNavigateToConciergeChat = () => navigateToConciergeChat(conciergeReportID, true);
const handleNavigateToConciergeChat = () => navigateToConciergeChat(conciergeReportID, currentUserAccountID, true);
const bankAccountState = reimbursementAccount?.achData?.state ?? '';

// If a user tries to navigate directly to the validate page we'll show them the EnableStep
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import MenuItem from '@components/MenuItem';
import ScrollView from '@components/ScrollView';
import Section from '@components/Section';
import Text from '@components/Text';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import {useMemoizedLazyExpensifyIcons, useMemoizedLazyIllustrations} from '@hooks/useLazyAsset';
import useLocalize from '@hooks/useLocalize';
import useOnyx from '@hooks/useOnyx';
Expand Down Expand Up @@ -32,9 +33,12 @@ function FinishChatCard({requiresTwoFactorAuth, reimbursementAccount, setUSDBank
const styles = useThemeStyles();
const {shouldUseNarrowLayout} = useResponsiveLayout();
const [conciergeReportID] = useOnyx(ONYXKEYS.CONCIERGE_REPORT_ID);
const {accountID: currentUserAccountID} = useCurrentUserPersonalDetails();
const policyID = reimbursementAccount?.achData?.policyID;
const shouldShowResetModal = reimbursementAccount?.shouldShowResetModal ?? false;
const handleNavigateToConciergeChat = () => navigateToConciergeChat(conciergeReportID, true, undefined, undefined, reimbursementAccount?.achData?.ACHRequestReportActionID);

const handleNavigateToConciergeChat = () =>
navigateToConciergeChat(conciergeReportID, currentUserAccountID, true, undefined, undefined, reimbursementAccount?.achData?.ACHRequestReportActionID);

const icons = useMemoizedLazyExpensifyIcons(['ChatBubble', 'Pencil', 'RotateLeft'] as const);
const illustrations = useMemoizedLazyIllustrations(['ConciergeBubble']);
Expand Down
6 changes: 3 additions & 3 deletions src/pages/inbox/ReportScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr
}

Navigation.isNavigationReady().then(() => {
navigateToConciergeChat(conciergeReportID, false);
navigateToConciergeChat(conciergeReportID, currentUserAccountID, false);
});
return;
}
Expand Down Expand Up @@ -814,9 +814,9 @@ function ReportScreen({route, navigation, isInSidePanel = false}: ReportScreenPr

// Fallback to Concierge
Navigation.isNavigationReady().then(() => {
navigateToConciergeChat(conciergeReportID);
navigateToConciergeChat(conciergeReportID, currentUserAccountID);
});
}, [reportWasDeleted, isFocused, deletedReportParentID, conciergeReportID]);
}, [reportWasDeleted, isFocused, deletedReportParentID, conciergeReportID, currentUserAccountID]);

useEffect(() => {
if (!isValidReportIDFromPath(reportIDFromRoute)) {
Expand Down
Loading
Loading