Skip to content

Commit

Permalink
finally
Browse files Browse the repository at this point in the history
  • Loading branch information
tervay committed Dec 18, 2023
1 parent 2337251 commit 19cab03
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/web/calculators/ratioFinder/math.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ function filterGears(
.filter(
(g) =>
(state.forceStartingPinionSize &&
g.teeth === state.startingPinionSize) ||
g.teeth === state.startingPinionSize &&
MotorBores.includes(g.bore)) ||
(state.minGearTeeth <= g.teeth && state.maxGearTeeth >= g.teeth),
);
}
Expand All @@ -168,7 +169,8 @@ function filterPulleys(
.filter(
(g) =>
(state.forceStartingPinionSize &&
g.teeth === state.startingPinionSize) ||
g.teeth === state.startingPinionSize &&
MotorBores.includes(g.bore)) ||
(state.minPulleyTeeth <= g.teeth && state.maxPulleyTeeth >= g.teeth),
);
}
Expand All @@ -190,7 +192,8 @@ function filterSprockets(
.filter(
(g) =>
(state.forceStartingPinionSize &&
g.teeth === state.startingPinionSize) ||
g.teeth === state.startingPinionSize &&
MotorBores.includes(g.bore)) ||
(state.minSprocketTeeth <= g.teeth &&
state.maxSprocketTeeth >= g.teeth),
);
Expand Down

0 comments on commit 19cab03

Please sign in to comment.