Commit f8da288f authored by aleclofabbro's avatar aleclofabbro

fixed bug user got logged outr on update profile

parent a68edda1
......@@ -31,7 +31,7 @@ export const useMe = () => {
const [
updateProfileMutation,
updateProfileMutationStatus
] = GQL.useMeLogoutMutation();
] = GQL.useMeUpdateMyProfileMutation();
const { push } = useHistory();
const me = meQ.data?.me;
......
......@@ -48,9 +48,9 @@ const DropzoneArea: React.FC<Props> = ({
const {
getRootProps,
getInputProps,
isDragActive,
rejectedFiles,
acceptedFiles
isDragActive
// rejectedFiles,
// acceptedFiles
} = useDropzone({
accept: filePattern,
// maxSize: uploadMaxBytes,
......@@ -66,7 +66,7 @@ const DropzoneArea: React.FC<Props> = ({
}
});
// const rejectedFile = rejectedFiles[0];
console.log({ rejectedFiles, acceptedFiles });
// console.log({ rejectedFiles, acceptedFiles });
return (
<>
<Box sx={{ height: '100%' }} {...getRootProps({ className: 'dropzone' })}>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment