Skip to content

Commit 8481934

Browse files
committed
Fix build errors on edit profile implementation
1 parent 81618ed commit 8481934

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/app/(authenticated)/profile/edit/EditProfileForm.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function EditProfileForm({
4444
updateUser,
4545
}: EditProfileFormProps) {
4646
const [profilePicturePreview, setProfilePicturePreview] = useState<string>(
47-
user.img,
47+
user.img
4848
);
4949
const {
5050
control,
@@ -277,7 +277,7 @@ export default function EditProfileForm({
277277
{errors.contacts?.linkedin?.message}
278278
</span>
279279
<span className="text-gray-600 text-sm block">
280-
Don't know how to find it?&nbsp;
280+
Don&apos;t know how to find it?&nbsp;
281281
<a
282282
href="https://www.linkedin.com/help/linkedin/answer/a522735"
283283
className="text-link"
@@ -375,8 +375,10 @@ export default function EditProfileForm({
375375
>
376376
<option value="">Choose an option</option>
377377
<option value="Associate degree">Associate degree</option>
378-
<option value="Bachelor's degree">Bachelor's degree</option>
379-
<option value="Master's degree">Master's degree</option>
378+
<option value="Bachelor's degree">
379+
Bachelor&apos;s degree
380+
</option>
381+
<option value="Master's degree">Master&apos;s degree</option>
380382
<option value="Doctoral degree">Doctoral degree</option>
381383
<option value="Other">Other</option>
382384
</select>

src/types/globals.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ type User = {
3030
degree: string;
3131
field: string;
3232
grade?: string;
33-
start?: string;
34-
end?: string;
33+
start: string;
34+
end: string;
3535
}[];
3636
mail?: string;
3737
bearer?:

0 commit comments

Comments
 (0)