fix(qa): verify private investor continuity across dossiers
This commit is contained in:
@@ -2,6 +2,7 @@ export type NavigationFocus = {
|
||||
case_id: string;
|
||||
step_code: string | null;
|
||||
version: number;
|
||||
opportunity?: string | null;
|
||||
};
|
||||
const key = (actor: number) => `investmoz-navigation-focus:${actor}`;
|
||||
/** A per-tab hint, never authority to access a dossier. Recheck the server listing. */
|
||||
@@ -27,6 +28,12 @@ export function readNavigationFocus(
|
||||
case_id: value.case_id,
|
||||
step_code: value.step_code,
|
||||
version: value.version,
|
||||
...(value.opportunity === null ||
|
||||
(typeof value.opportunity === 'string' &&
|
||||
value.opportunity.length > 0 &&
|
||||
value.opportunity.length <= 100)
|
||||
? { opportunity: value.opportunity }
|
||||
: {}),
|
||||
};
|
||||
} catch {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user