mirror of
https://github.com/ae-utbm/sith.git
synced 2026-03-14 07:35:00 +00:00
update JS deps
This commit is contained in:
@@ -64,7 +64,7 @@ document.addEventListener("alpine:init", () => {
|
||||
|
||||
checkFormulas() {
|
||||
const products = new Set(
|
||||
Object.keys(this.basket).map((i: string) => Number.parseInt(i)),
|
||||
Object.keys(this.basket).map((i: string) => Number.parseInt(i, 10)),
|
||||
);
|
||||
const formula: ProductFormula = config.formulas.find((f: ProductFormula) => {
|
||||
return f.products.every((p: number) => products.has(p));
|
||||
|
||||
Reference in New Issue
Block a user