Skip to content

Commit

Permalink
Merge pull request #1451 from companieshouse/fix/ROECCT-98-disply-ent…
Browse files Browse the repository at this point in the history
…ity-name-on-trust-page

ROECCT-98 pass app data to individuals involved in trusts page
  • Loading branch information
ConnorOS-ch committed Jul 4, 2024
2 parents 10957e9 + 1b6aa93 commit 64198f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/trust.involved.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { mapIndividualTrusteeFromSessionToPage } from '../utils/trust/individual
import { mapFormerTrusteeFromSessionToPage } from '../utils/trust/historical.beneficial.owner.mapper';
import { isActiveFeature } from './feature.flag';
import { getUrlWithParamsToPath } from './url';
import { ApplicationData } from "../model";

export const TRUST_INVOLVED_TEXTS = {
title: 'Individuals or entities involved in the trust',
Expand Down Expand Up @@ -129,10 +130,11 @@ export const getTrustInvolvedPage = (
): void => {
try {
logger.debugRequest(req, `${req.method} ${req.route.path}`);
const appData: ApplicationData = getApplicationData(req.session);

const pageProps = getPageProperties(req, isUpdate, isReview);

return res.render(pageProps.templateName, pageProps);
return res.render(pageProps.templateName, { ...pageProps, ...appData });
} catch (error) {
logger.errorRequest(req, error);
next(error);
Expand Down

0 comments on commit 64198f7

Please sign in to comment.