Skip to content

Commit

Permalink
fix NaN's
Browse files Browse the repository at this point in the history
  • Loading branch information
userXinos committed Feb 2, 2024
1 parent 0200e60 commit f447672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/ModulesCalc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function getModulesBySlotType(type: string, ...[getChars, elements]: Parameters<
return Object.entries(modules).map(([name, module]: [string, OutputMap]) => {
for (const [, value] of Object.entries(module)) {
if (Array.isArray(value) && value.length < MaxModuleLevel) {
value.unshift(...Array(MaxModuleLevel - value.length));
value.unshift(...Array(MaxModuleLevel - value.length).fill(0));
}
}
Expand Down

0 comments on commit f447672

Please sign in to comment.