Skip to content

Commit

Permalink
🎨 Changing the case for consts in lume-bar-chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas1981 authored and vivy27 committed Nov 21, 2022
1 parent 27b251f commit 61f8d9f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/charts/lume-bar-chart/lume-bar-chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ enum TYPES {
grouped = 'grouped',
stacked = 'stacked',
}
const componentMap = {
const COMPONENT_MAP = {
single: 'lume-single-bar-chart',
grouped: 'lume-grouped-bar-chart',
stacked: 'lume-stacked-bar-chart',
Expand Down Expand Up @@ -76,15 +76,15 @@ export default defineComponent({
if (!props.data) return;
// Single bar chart
if (singleDatasetValidator(props.data)) return componentMap.single;
if (singleDatasetValidator(props.data)) return COMPONENT_MAP.single;
if (!props.type) {
throw new Error(
"Bar chart needs a type when there's multiple datasets."
);
}
return componentMap[props.type];
return COMPONENT_MAP[props.type];
});
return {
Expand Down

0 comments on commit 61f8d9f

Please sign in to comment.