mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-13 15:13:07 +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 = (
|
||||
estimates: 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) {
|
||||
central = pessimistic
|
||||
|
|
|
|||
Loading…
Reference in a new issue