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:
parent
6cfa05ee58
commit
096aa65e58
1 changed files with 1 additions and 1 deletions
|
@ -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}) {
|
||||
|
|
Loading…
Add table
Reference in a new issue