diff --git a/server/src/js/components/map/button.js b/server/src/js/components/map/button.js index d519dff62..ba277376a 100644 --- a/server/src/js/components/map/button.js +++ b/server/src/js/components/map/button.js @@ -11,7 +11,7 @@ export function createMapButton (buttonContainer, uri, options) { } button.id = mapId + '-btn' button.innerHTML = `${options.btnText || 'View map'}(Visual only)` - button.className = options.btnClass || (options.btnType === 'link' ? 'defra-link-icon-s' : 'defra-button-secondary') + button.className = options.btnClasses || (options.btnType === 'link' ? 'defra-link-icon-s' : 'defra-button-secondary') if (options.data && options.data.button) { button.setAttribute('data-journey-click', options.data.button)