From 2d0c69a26eada81d6e2db2da62484bb93a6370fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Fri, 26 Jun 2026 17:29:33 -0400 Subject: [PATCH] fix(dashboard): use strict equality instead of assignment in server count check `if(count = 0)` assigns 0 to `count` (always falsy), so the "no results found" message never displays when there are no servers. Changed to `if(count === 0)` for correct comparison. --- resources/views/dashboard.blade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 4440fdd..4ea1a68 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -57,7 +57,7 @@ count=count+1; } }); - if(count = 0) { + if(count === 0) { $('#dashboard').html('

{{ __('linkpanel.no_results_found') }}

{{ __('linkpanel.add_new_server') }}!
'); } }