Skip to content

Commit

Permalink
Fix site monitor with error
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Apr 7, 2024
1 parent d49a06e commit f82a122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/services/site-monitor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function SiteMonitor({ group, service, style }) {
let statusTitle = t("siteMonitor.http_status");
let statusText = "";

if (error) {
if (error || (data && data.error)) {
colorClass = "text-rose-500";
statusText = t("siteMonitor.error");
statusTitle += ` ${t("siteMonitor.error")}`;
Expand Down

0 comments on commit f82a122

Please sign in to comment.