fix conditional rendering
This commit is contained in:
1 parent
93dd49c875
commit
40977775f0
1 file changed
+1
-1
@@ -82,13 +82,13 @@ export const HistogramStatus = ({
|
||||
const normalChecks = normalizeResponseTimes(checks, "avgResponseTime");
|
||||
|
||||
const CustomTooltip = ({ active, payload }: any) => {
|
||||
const uiTimezone = useAppSelector((state: any) => state.ui.timezone);
|
||||
if (!active || !payload?.length) return null;
|
||||
const d = payload[0]?.payload as GroupedCheck & {
|
||||
avgResponseTime?: number;
|
||||
};
|
||||
const avg = d?.avgResponseTime ?? 0;
|
||||
const titleText = t("common.charts.uptime.avgResponseTime");
|
||||
const uiTimezone = useAppSelector((state: any) => state.ui.timezone);
|
||||
const fmt = range === "30d" ? "MMM D, YYYY" : "ddd, MMM D, YYYY, h:mm A";
|
||||
let dateLabel = "";
|
||||
if (d?._id) {
|
||||
|
||||
Reference in new issue
Block a user