web/satellite: update billing history logic

Update billing history logic to exclude empty status invoices

Fixes https://github.com/storj/storj/issues/5427

Change-Id: If600f3dbce511b1c427d8fcde577dd145e693bb1
This commit is contained in:
Lizzy Thomson 2023-01-06 10:46:02 -07:00 committed by Lizzy Thomson
parent 1688e4965b
commit c3c239d1f7

View File

@ -61,7 +61,7 @@ export default class BillingHistory extends Vue {
public get historyItems(): PaymentsHistoryItem[] {
return this.$store.state.paymentsModule.paymentsHistory.filter((item: PaymentsHistoryItem) => {
return item.status !== 'draft' && (item.type === PaymentsHistoryItemType.Invoice || item.type === PaymentsHistoryItemType.Charge);
return item.status !== 'draft' && item.status !== '' && (item.type === PaymentsHistoryItemType.Invoice || item.type === PaymentsHistoryItemType.Charge);
});
}
}