|
|
|
@ -46,8 +46,6 @@ function ProfilSettings() {
|
|
|
|
|
const [modalShow, setModalShow] = useState(false)
|
|
|
|
|
const width = 150
|
|
|
|
|
|
|
|
|
|
console.log(user)
|
|
|
|
|
|
|
|
|
|
const profilePicture = user!.profilePicture
|
|
|
|
|
return (
|
|
|
|
|
<Container>
|
|
|
|
@ -101,7 +99,6 @@ function ProfilSettings() {
|
|
|
|
|
const password = passwordRef.current?.value
|
|
|
|
|
const confirmPassword = confirmPasswordRef.current?.value
|
|
|
|
|
|
|
|
|
|
console.log(password, confirmPassword, name, email)
|
|
|
|
|
if (password !== confirmPassword) {
|
|
|
|
|
setErrorMessages(["Les mots de passe ne correspondent pas !"])
|
|
|
|
|
return
|
|
|
|
@ -207,8 +204,6 @@ async function imageExists(imageLink: string) {
|
|
|
|
|
try {
|
|
|
|
|
const response = await fetch(imageLink)
|
|
|
|
|
|
|
|
|
|
console.log(response)
|
|
|
|
|
|
|
|
|
|
if (response.ok) {
|
|
|
|
|
const contentType = response.headers.get("content-type")
|
|
|
|
|
return contentType?.startsWith("image/") ?? false
|
|
|
|
|