fix: import du Loader

This commit is contained in:
N3WT DE COMPET
2025-05-06 09:48:26 +02:00
parent 8fc9478786
commit e2a39ff74d

View File

@ -13,6 +13,7 @@ import InputPhone from '@/components/InputPhone';
import CheckBox from '@/components/CheckBox';
import RadioList from '@/components/RadioList';
import SelectChoice from '@/components/SelectChoice';
import Loader from '@/components/Loader';
import { getCurrentSchoolYear, getNextSchoolYear } from '@/utils/Date';
import logger from '@/utils/logger';
import { levels, genders } from '@/utils/constants';
@ -183,9 +184,7 @@ export default function CreateSubscriptionPage() {
...prevData,
isExistingParentProfile: true,
existingProfileId: existingProfile.id, // Récupérer l'ID du profil associé
guardianLastName: existingProfile.last_name || '',
guardianFirstName: existingProfile.first_name || '',
guardianPhone: existingProfile.phone || '',
guardianEmail: existingProfile.email || ''
}));
} else {
// Si aucun profil avec cet email n'existe, réinitialiser les champs
@ -215,8 +214,7 @@ export default function CreateSubscriptionPage() {
studentGender: data?.student?.gender || '',
guardianLastName: data?.student?.guardians[0]?.last_name || '',
guardianFirstName: data?.student?.guardians[0]?.first_name || '',
guardianEmail:
data?.student?.guardians[0]?.associated_profile_email || '',
guardianEmail: data?.student?.guardians[0]?.associated_profile_email || '',
guardianPhone: data?.student?.guardians[0]?.phone || '',
selectedFileGroup: data?.fileGroup || '',
schoolYear: data?.school_year || '',