diff --git a/src/App.tsx b/src/App.tsx index 80730d4..80e0e79 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -20,6 +20,9 @@ const INITIAL_PROFILE: UserProfile = { age: 65, // Retirement Start Age baseAge: 55, // Current Age filingStatus: FilingStatus.Single, + spouseAge: 0, + spouseSocialSecurity: 0, + spouseSocialSecurityStartAge: 67, spendingNeed: 60000, isSpendingReal: true, assets: { traditionalIRA: 250000, rothIRA: 100000, rothBasis: 50000, brokerage: 150000, hsa: 25000 }, diff --git a/src/components/features/InputSection.tsx b/src/components/features/InputSection.tsx index 778dac5..9e7fd0a 100644 --- a/src/components/features/InputSection.tsx +++ b/src/components/features/InputSection.tsx @@ -190,18 +190,57 @@ const InputSection: React.FC = ({ profile, setProfile, onRest placeholder="Target Age" /> -
+
+ {profile.filingStatus === FilingStatus.MarriedJoint && ( +
+ + { + const rawValue = e.target.value; + const updatedValue = rawValue === '' ? 65 : parseInt(rawValue, 10); + handleChange('spouseAge', updatedValue); + }} + className={inputClass} + placeholder="65" + /> +
+ )}