This commit is contained in:
Om Lanke
2025-09-22 23:49:56 +05:30
parent cabb2ffc9c
commit a9156127db
2 changed files with 7 additions and 7 deletions

View File

@@ -846,15 +846,15 @@ export default function ProfilePage() {
type="number"
step="0.01"
min="0"
max="10"
max="100"
placeholder="0.00"
/>
) : (
<Input id="ssc" value={`${student.ssc}/10`} readOnly />
<Input id="ssc" value={`${student.ssc}/100`} readOnly />
)}
</div>
<div>
<Label htmlFor="hsc">HSC Score</Label>
<Label htmlFor="hsc">{editData.isDiploma || student.isDiploma ? 'Diploma Score' : 'HSC Score'}</Label>
{editingSection === 'academic' ? (
<Input
id="hsc"
@@ -863,11 +863,11 @@ export default function ProfilePage() {
type="number"
step="0.01"
min="0"
max="10"
max="100"
placeholder="0.00"
/>
) : (
<Input id="hsc" value={`${student.hsc}/10`} readOnly />
<Input id="hsc" value={`${student.hsc}/100`} readOnly />
)}
</div>
</div>

View File

@@ -136,11 +136,11 @@ export default function AcademicDetailsStep({ form }: { form: any }) {
name="hsc"
render={({ field }) => (
<FormItem>
<FormLabel>HSC % *</FormLabel>
<FormLabel>{form.watch('isDiploma') ? 'Diploma % *' : 'HSC % *'}</FormLabel>
<FormControl>
<Input
type="number"
placeholder="12th percentage"
placeholder={form.watch('isDiploma') ? 'Diploma percentage' : '12th percentage'}
{...field}
onChange={(e) => field.onChange(parseFloat(e.target.value) || 0)}
/>