Skip to content

Commit

Permalink
update feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kzdev420 committed Jan 4, 2024
1 parent 790dcd8 commit f665f08
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/stores/filingHistoryListStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ export const useFilingHistoryListStore = defineStore('filingHistoryList', {
// return only the valid filings
return state.filings.filter(filing => {
// safety check for required fields
if (!filing.name || !filing.displayName || !filing.effectiveDate || !filing.submittedDate || !filing.status || !filing.displayLedger) {
if (filing.displayLedger) {
// eslint-disable-next-line no-console
console.log('Invalid filing =', filing)
}
if (!filing.name || !filing.displayName || !filing.effectiveDate || !filing.submittedDate || !filing.status) {
// eslint-disable-next-line no-console
console.log('Invalid filing =', filing)
return false
} else if (!filing.displayLedger) {
// eslint-disable-next-line no-console
console.log('Not shown filing on the ledger =', filing)
return false
}
return true
Expand Down

0 comments on commit f665f08

Please sign in to comment.