We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff70aa6 + 3758404 commit fe00ed0Copy full SHA for fe00ed0
src/core/api.js
@@ -129,7 +129,7 @@ export const acceptService = (service, category) => {
129
*/
130
export const acceptedService = (service, category) => {
131
const acceptedServices = !globalObj._state._invalidConsent
132
- ? globalObj._state._acceptedServices[category]
+ ? (globalObj._state._acceptedServices[category] || [])
133
: [];
134
135
return elContains(acceptedServices, service);
0 commit comments