Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Feb 23, 2024
1 parent ef7b265 commit 459e2f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Datas/AnswersChartData.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getChartJsData(): array
$datasets = [];
$data = $this->answers->toCollection()->pluck('value')->all();

if (in_array($this->chart->type, ['pieAvg', 'pie1'])) {
if (in_array($this->chart->type, ['pieAvg', 'pie1'], false)) {
$data = $this->answers->toCollection()->pluck('avg')->all();

if (isset($this->chart->max)) {
Expand Down

0 comments on commit 459e2f3

Please sign in to comment.