Change localStorage to username

This commit is contained in:
Cédric FAMIBELLE-PRONZOLA
2022-05-17 00:31:13 +04:00
parent 8979462abd
commit c47f22688c
3 changed files with 28 additions and 19 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ function Koneksyon({chimen}) {
'content-type': 'application/json'
}
})
localStorage.setItem('user-id', response?.data?.user?.id)
localStorage.setItem('username', `${response?.data?.user?.username}`)
setSuccess(true)
resetRegisterForm()
} catch (error_) {