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

Apply reviewer feedback

parent 8abb5284
......@@ -69,7 +69,7 @@ export default {
return this.minutesUsageData.map((cur) => cur.month);
},
isDataEmpty() {
return this.minutesUsageData.length === 0 && this.selectedMonth.length === 0;
return this.minutesUsageData.length === 0 && !this.selectedMonth;
},
},
watch: {
......
......@@ -37,7 +37,7 @@ describe('Minutes usage by month chart component', () => {
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: [] });
expect(findAlert().exists()).toBe(true);
......
......@@ -55,7 +55,7 @@ describe('Minutes usage by project chart component', () => {
});
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: [] });
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