Skip to content

Commit

Permalink
chore: coming soon fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ayussh-2 committed Oct 25, 2024
1 parent 2201ff5 commit 4de2bbb
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/app/register/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ function Page() {
const { name, value, type, checked } = event.target;
if (type === 'file') {
try {
const imageUrl = await handleLoadingAndToast(
uploadToCloudinary(event.target.files[0]),
'Uploading Image...',
`${name.toUpperCase()} uploaded successfully`,
`${name.toUpperCase()} upload failed!`,
setLoading,
);
// const imageUrl = await handleLoadingAndToast(
// uploadToCloudinary(event.target.files[0]),
// 'Uploading Image...',
// `${name.toUpperCase()} uploaded successfully`,
// `${name.toUpperCase()} upload failed!`,
// setLoading,
// );
setUserDetails((prev) => ({
...prev,
[name]: imageUrl,
[name]: 'imageUrl',
}));
setErrors((prev) => ({ ...prev, [name]: '' }));
} catch (error) {
Expand Down

0 comments on commit 4de2bbb

Please sign in to comment.