Skip to content

Commit

Permalink
feat(@dpc-sdp/nuxt-ripple): add fallback for legacy tide versions
Browse files Browse the repository at this point in the history
  • Loading branch information
David Featherston committed Jul 15, 2024
1 parent bdce60c commit 28d0cdc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/nuxt-ripple/mapping/site/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export default {
getImageFromField(src, 'field_bottom_corner_graphic')
},
contentRatingText: (src: any) => {
return getBodyFromField(src, 'field_additional_comment')
return src.hasOwnProperty('field_additional_comment')
? getBodyFromField(src, 'field_additional_comment')
: '<p>If you need a response, please use our <a href="/contact-us" class="rpl-text-link rpl-u-focusable-inline">contact us form</a>.</p>'
},
acknowledgementFooter: 'field_acknowledgement_to_country',
copyrightHtml: (src: any) => {
Expand Down

0 comments on commit 28d0cdc

Please sign in to comment.