diff --git a/public/site/templates/project.json.php b/public/site/templates/project.json.php index 6cc1d75..71e0a1e 100644 --- a/public/site/templates/project.json.php +++ b/public/site/templates/project.json.php @@ -9,7 +9,7 @@ $project = [ ? $page->client()->toPage()->logo()->toFile()->url() : null, "steps" => $page->getSteps(), - "designToLight" => $page->isDTLEnabled() ? processDTLProposals($page) : null, + "designToLight" => $page->isDTLEnabled() == "true" ? processDTLProposals($page) : null, ]; $pageData = array_merge($genericData, $project); diff --git a/public/site/templates/projects.json.php b/public/site/templates/projects.json.php index 311547c..4a4e8c0 100644 --- a/public/site/templates/projects.json.php +++ b/public/site/templates/projects.json.php @@ -12,7 +12,7 @@ function getProjectData($project) { "notifications" => Yaml::decode($project->notifications()->value), "uuid" => (string) $project->uuid(), "slug" => (string) $project->slug(), - "isDTLEnabled" => (bool) $project->isDTLEnabled()->value() == "true" + "isDTLEnabled" => $project->isDTLEnabled()->value() == "true" ? true : false ]; if ($project->isDTLEnabled()) {