diff --git a/src/ui/server/controllers/insurance/declarations/confidentiality/index.test.ts b/src/ui/server/controllers/insurance/declarations/confidentiality/index.test.ts index e8e14a5f35..10ac58592a 100644 --- a/src/ui/server/controllers/insurance/declarations/confidentiality/index.test.ts +++ b/src/ui/server/controllers/insurance/declarations/confidentiality/index.test.ts @@ -77,7 +77,7 @@ describe('controllers/insurance/declarations/confidentiality', () => { }), ...pageVariables(referenceNumber), userName: getUserNameFromSession(req.session.user), - CONFIDENTIALITY, + CONFIDENTIALITY_CONTENT: CONFIDENTIALITY, application: mapApplicationToFormFields(res.locals.application), }; @@ -138,7 +138,7 @@ describe('controllers/insurance/declarations/confidentiality', () => { }), ...pageVariables(referenceNumber), userName: getUserNameFromSession(req.session.user), - CONFIDENTIALITY, + CONFIDENTIALITY_CONTENT: CONFIDENTIALITY, validationErrors: generateValidationErrors(payload, FIELD_ID, ERROR_MESSAGES.INSURANCE.DECLARATIONS[FIELD_ID].IS_EMPTY), }; diff --git a/src/ui/server/controllers/insurance/declarations/confidentiality/index.ts b/src/ui/server/controllers/insurance/declarations/confidentiality/index.ts index 8a57382f05..b7f3677dff 100644 --- a/src/ui/server/controllers/insurance/declarations/confidentiality/index.ts +++ b/src/ui/server/controllers/insurance/declarations/confidentiality/index.ts @@ -58,7 +58,7 @@ export const get = async (req: Request, res: Response) => { }), ...pageVariables(application.referenceNumber), userName: getUserNameFromSession(req.session.user), - CONFIDENTIALITY, + CONFIDENTIALITY_CONTENT: CONFIDENTIALITY, application: mapApplicationToFormFields(res.locals.application), }); }; @@ -91,7 +91,7 @@ export const post = async (req: Request, res: Response) => { }), ...pageVariables(referenceNumber), userName: getUserNameFromSession(req.session.user), - CONFIDENTIALITY, + CONFIDENTIALITY_CONTENT: CONFIDENTIALITY, validationErrors, }); }