acceptAction = (event, acceptType) => {
        preventDefault(event);
        acceptCategory(acceptType);
        hidePreferences();
        hide();
    }
Helper function: accept and then hide modals
@param {Event} event source event
@param {string|string[]} [acceptType]