diff --git a/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx index e02bb4e9ab3d2..9644ccf66e3f4 100644 --- a/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx +++ b/x-pack/plugins/uptime/public/components/monitor/synthetics/console_step.tsx @@ -14,11 +14,13 @@ interface ConsoleStepProps { } export const ConsoleStep: FC = ({ step }) => { - const c = useContext(UptimeThemeContext); + const { + colors: { danger }, + } = useContext(UptimeThemeContext); let typeColor: string | null; if (step.synthetics?.type === 'stderr') { - typeColor = c.colors.danger; + typeColor = danger; } else { typeColor = null; }