DE
Size: a a a
DE
I
DE
DE
I
DE
I
I
DE
JS
JS
NR
NR
В
I
В
p
CG
if(response.ok)?fetch(`login`, {
method: 'POST',
body: formData,
}).then(response => response.json())
.then(json => {
localStorage.setItem('access_token', json.access_token)
dispatch(changeName({
name: json.username,
}));
})
.catch(error => alert('Что-то пошло не так :(' + error));CM
if(response.ok)?fetch(`login`, {
method: 'POST',
body: formData,
}).then(response => response.json())
.then(json => {
localStorage.setItem('access_token', json.access_token)
dispatch(changeName({
name: json.username,
}));
})
.catch(error => alert('Что-то пошло не так :(' + error));F