mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-24 18:13:06 +00:00
Fix prefer-const lint in vote estimate normalize helper.
This commit is contained in:
parent
aa12e173d8
commit
66dc64fe41
1 changed files with 3 additions and 1 deletions
|
|
@ -123,7 +123,9 @@ export const hasCompleteVoteEstimateRange = (estimates: VoteEstimateScenarioView
|
||||||
export const normalizeVoteEstimateOnSave = (
|
export const normalizeVoteEstimateOnSave = (
|
||||||
estimates: VoteEstimateScenarioViewModel,
|
estimates: VoteEstimateScenarioViewModel,
|
||||||
): VoteEstimateScenarioViewModel => {
|
): VoteEstimateScenarioViewModel => {
|
||||||
let { pessimistic, central, optimistic } = { ...estimates }
|
const pessimistic = estimates.pessimistic
|
||||||
|
let central = estimates.central
|
||||||
|
let optimistic = estimates.optimistic
|
||||||
|
|
||||||
if (pessimistic != null && central != null && pessimistic > central) {
|
if (pessimistic != null && central != null && pessimistic > central) {
|
||||||
central = pessimistic
|
central = pessimistic
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue