Skip to content

Commit

Permalink
fix: Display correct color if server passes all checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bdlukaa committed Apr 29, 2024
1 parent b823cbc commit 7bd4a48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/screens/settings/shared/server_tile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,15 @@ class ServerCard extends StatelessWidget {
}(),
style: TextStyle(
color: () {
if (settings.checkServerCertificates(server)) {
if (!settings.checkServerCertificates(server)) {
return theme.colorScheme.error;
}
if (!server.online) {
} else if (!server.online) {
return theme.colorScheme.error;
}

return null;
}(),
fontWeight: FontWeight.w600,
),
textAlign: TextAlign.center,
),
Expand Down

0 comments on commit 7bd4a48

Please sign in to comment.