Commit 9252df6a authored by Payton Burdette's avatar Payton Burdette

Apply reviewer feedback

parent 8abb5284
...@@ -69,7 +69,7 @@ export default { ...@@ -69,7 +69,7 @@ export default {
return this.minutesUsageData.map((cur) => cur.month); return this.minutesUsageData.map((cur) => cur.month);
}, },
isDataEmpty() { isDataEmpty() {
return this.minutesUsageData.length === 0 && this.selectedMonth.length === 0; return this.minutesUsageData.length === 0 && !this.selectedMonth;
}, },
}, },
watch: { watch: {
......
...@@ -37,7 +37,7 @@ describe('Minutes usage by month chart component', () => { ...@@ -37,7 +37,7 @@ describe('Minutes usage by month chart component', () => {
expect(findAlert().exists()).toBe(false); expect(findAlert().exists()).toBe(false);
}); });
it('renders an alert when no data is avaliable', () => { it('renders an alert when no data is available', () => {
createComponent({ minutesUsageData: [] }); createComponent({ minutesUsageData: [] });
expect(findAlert().exists()).toBe(true); expect(findAlert().exists()).toBe(true);
......
...@@ -55,7 +55,7 @@ describe('Minutes usage by project chart component', () => { ...@@ -55,7 +55,7 @@ describe('Minutes usage by project chart component', () => {
}); });
describe('without CI minutes data', () => { describe('without CI minutes data', () => {
it('renders an alert when no data is avaliable', () => { it('renders an alert when no data is available', () => {
createComponent({ minutesUsageData: [] }); createComponent({ minutesUsageData: [] });
expect(findAlert().exists()).toBe(true); expect(findAlert().exists()).toBe(true);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment