Skip to content

Commit

Permalink
Quick fix for the survivor report (#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregable authored Apr 18, 2024
1 parent 24dcc90 commit d20170a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/lib/components/SurvivorReport.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
let fileVsDeath: string = "fileBeforeDeath";
// sliderMonths_ is bound to the value of the slider, in months.
// This is set once in onMount to the user's NRA, typically 66 * 12.
// This is set once in onMount to the user's NRA, typically 67 * 12.
// It is not set again, even if the users's birthday / NRA changes so that
// we don't override the user's selection should they have changed it
// manually.
let beforeDeathSliderMonths_: number = 66 * 12;
let beforeDeathSliderMonths_: number = 67 * 12;
let afterDeathSliderMonths_: number = 68 * 12;
let survivorSliderMonths_: number = 60 * 12;
Expand Down Expand Up @@ -472,9 +472,12 @@
bind:value={survivorSliderMonths_}
floor={60 * 12}
userFloor={60 * 12}
ceiling={66 * 12}
ceiling={lowerEarner.survivorNormalRetirementAge().asMonths()}
step={1}
translate={translateSliderLabel(null, 66 * 12)}
translate={translateSliderLabel(
null,
lowerEarner.survivorNormalRetirementAge().asMonths()
)}
showTicks={true}
ticksArray={survivorTicks_}
barLeftColor={lowerEarner.colors().light}
Expand Down

0 comments on commit d20170a

Please sign in to comment.