Skip to content

Commit

Permalink
fix capital letter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
animehart committed Nov 8, 2024
1 parent 136b04c commit 3362998
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*/

import React from 'react';
import { capitalize } from 'lodash';
import { css } from '@emotion/react';
import type { EuiThemeComputed } from '@elastic/eui';
import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText, EuiTitle, useEuiTheme } from '@elastic/eui';
Expand Down Expand Up @@ -76,7 +77,7 @@ export const AlertsPreview = ({
});

const alertStats = Array.from(severityMap, ([key, count]) => ({
key,
key: capitalize(key),
count,
color: getSeverityColor(key),
}));
Expand Down

0 comments on commit 3362998

Please sign in to comment.