@@ -167,6 +207,10 @@ const UserProfileForm: React.FC = () => {
src={profileImage}
alt="Profile"
onClick={handleImageClick}
+ onError={(e) => {
+ e.currentTarget.src = '/unknown.jpg';
+ }}
+
/>
{
d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
/>
- {watchedValues.birthDate || 'YYYY-MM-DD'}
+ {convertToNormalDate(watchedValues.birthDate) || watchedValues.birthDate || 'YYYY-MM-DD'}
@@ -322,8 +368,7 @@ const UserProfileForm: React.FC = () => {
nameuse="Address"
type="text"
placeholder="Address"
- {...register('whereYouLive')}
- error={errors.whereYouLive?.message}
+ error ={errors?.address?.message}
/>
@@ -384,9 +429,13 @@ const UserProfileForm: React.FC = () => {