0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Fixed comments enabled check

- `comments_enabled` value is a string, one of `off`, `paid` or `all`, updates helper check to use that
This commit is contained in:
Rishabh 2022-08-05 18:09:45 +05:30
parent 6cfa05ee58
commit 096aa65e58

View file

@ -211,7 +211,7 @@ export function hasMultipleProductsFeature({site}) {
}
export function hasCommentsEnabled({site}) {
return !!site?.comments_enabled;
return site?.comments_enabled && site?.comments_enabled !== 'off';
}
export function transformApiSiteData({site}) {