Skip to content

Commit

Permalink
fix(EMS-458): fix issue where skip content partial would not render t…
Browse files Browse the repository at this point in the history
…ext/link (#132)
  • Loading branch information
ttbarnes authored Oct 20, 2022
1 parent d462eba commit 6cc0554
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/ui/server/controllers/quote/policy-type/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { PAGE_VARIABLES, get, post } from '.';
import { BUTTONS, COOKIES_CONSENT, FIELDS, FOOTER, PAGES, PRODUCT } from '../../../content-strings';
import { BUTTONS, COOKIES_CONSENT, FIELDS, FOOTER, LINKS, PAGES, PRODUCT } from '../../../content-strings';
import { FIELD_IDS, ROUTES, TEMPLATES } from '../../../constants';
import generateValidationErrors from './validation';
import { updateSubmittedData } from '../../../helpers/update-submitted-data';
Expand All @@ -25,6 +25,7 @@ describe('controllers/quote/policy-type', () => {
CONTENT_STRINGS: {
BUTTONS,
COOKIES_CONSENT,
LINKS,
FOOTER,
PRODUCT,
...PAGES.POLICY_TYPE_PAGE,
Expand Down
3 changes: 2 additions & 1 deletion src/ui/server/controllers/quote/policy-type/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BUTTONS, COOKIES_CONSENT, FIELDS, FOOTER, PAGES, PRODUCT } from '../../../content-strings';
import { BUTTONS, COOKIES_CONSENT, FIELDS, FOOTER, LINKS, PAGES, PRODUCT } from '../../../content-strings';
import { FIELD_IDS, ROUTES, TEMPLATES } from '../../../constants';
import generateValidationErrors from './validation';
import { isSinglePolicyType } from '../../../helpers/policy-type';
Expand All @@ -11,6 +11,7 @@ const PAGE_VARIABLES = {
CONTENT_STRINGS: {
BUTTONS,
COOKIES_CONSENT,
LINKS,
FOOTER,
PRODUCT,
...PAGES.POLICY_TYPE_PAGE,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ const { AMOUNT_CURRENCY, CONTRACT_VALUE, CREDIT_PERIOD, CURRENCY, MAX_AMOUNT_OWE
const generatePageVariables = (policyType: string) => {
const pageVariables: TellUsAboutPolicyPageVariables = {
CONTENT_STRINGS: {
PRODUCT,
FOOTER,
BUTTONS,
LINKS,
COOKIES_CONSENT,
LINKS,
FOOTER,
PRODUCT,
...PAGES.TELL_US_ABOUT_YOUR_POLICY_PAGE,
},
FIELDS: {
Expand Down

0 comments on commit 6cc0554

Please sign in to comment.