mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
fix: error message
This commit is contained in:
@ -91,7 +91,7 @@ export const PublicProfileForm = ({
|
|||||||
case AppErrorCode.PROFILE_URL_TAKEN:
|
case AppErrorCode.PROFILE_URL_TAKEN:
|
||||||
form.setError('url', {
|
form.setError('url', {
|
||||||
type: 'manual',
|
type: 'manual',
|
||||||
message: error.userMessage,
|
message: error.message,
|
||||||
});
|
});
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
@ -57,11 +57,7 @@ export const updatePublicProfile = async ({ userId, data }: UpdatePublicProfileO
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (isUrlTakenByAnotherUser || isUrlTakenByAnotherTeam) {
|
if (isUrlTakenByAnotherUser || isUrlTakenByAnotherTeam) {
|
||||||
throw new AppError(
|
throw new AppError(AppErrorCode.PROFILE_URL_TAKEN, 'The profile username is already taken');
|
||||||
AppErrorCode.PROFILE_URL_TAKEN,
|
|
||||||
'Profile username is taken',
|
|
||||||
'The profile username is already taken',
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user