diff --git a/src/components/UserCard.tsx b/src/components/UserCard.tsx index 7d89e8e7..e6f33ebe 100644 --- a/src/components/UserCard.tsx +++ b/src/components/UserCard.tsx @@ -190,7 +190,7 @@ const UserCard = ({user, loggedInUser, onClose, onViewStudents, onViewTeachers}: name="monthlyDuration" onChange={(e) => setMonthlyDuration(e ? parseInt(e) : undefined)} placeholder="Enter monthly duration" - defaultValue={userAmount} + defaultValue={monthlyDuration} />