Skip to content

Fix assignment-instead-of-comparison bug in dashboard template#2

Open
Avicennasis wants to merge 1 commit into
ATSiCorp:mainfrom
Avicennasis:fix/typoscan-assignment-bug
Open

Fix assignment-instead-of-comparison bug in dashboard template#2
Avicennasis wants to merge 1 commit into
ATSiCorp:mainfrom
Avicennasis:fix/typoscan-assignment-bug

Conversation

@Avicennasis

Copy link
Copy Markdown

Summary

  • Fix if(count = 0)if(count === 0) in resources/views/dashboard.blade.php line 60
  • This is a functional bug: the = operator assigns 0 to count (which is falsy), so the "no results" fallback block never renders

Notes

This is a real bug fix, not a cosmetic change. The assignment always evaluates to falsy (0), preventing the intended conditional branch from executing.

…ount 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant