From ec032ce8c65de93d8aaa06ecba0dbe5cad58fdc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 1 Nov 2022 18:28:30 +0300 Subject: [PATCH] fixed suggestion button issue.. --- app/View/Components/Suggestions.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/View/Components/Suggestions.php b/app/View/Components/Suggestions.php index 2c80764ed..efe0b9b46 100644 --- a/app/View/Components/Suggestions.php +++ b/app/View/Components/Suggestions.php @@ -72,6 +72,10 @@ class Suggestions extends Component return []; } + if (count($modules) < 3) { + return $modules; + } + return Arr::random($modules, 2); } }