Skip to content

Commit

Permalink
Fix length check in filterSelected -> filter
Browse files Browse the repository at this point in the history
  • Loading branch information
TaYaKi71751 committed Aug 19, 2022
1 parent 96d29e0 commit 1e27402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pre/Select.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { VaccineInfo } from '../type';
import { loadConfig } from '../util/Config';
const oe = Object.entries;
const fe = Object.fromEntries;

export function filterSelected (vaccineQuantities: Array<VaccineInfo>) {
const config = loadConfig();
const selectedVaccines = config.vaccines;
let _a = vaccineQuantities;
_a = _a.filter((vaccineQuantity) => {
return fe(
return (
oe(vaccineQuantity)
.filter(([k, v]) => typeof v == 'string')
.filter(([k, v]: any) => {
Expand Down

0 comments on commit 1e27402

Please sign in to comment.