rename pages functions
This commit is contained in:
@@ -110,10 +110,8 @@ export async function registration(
|
||||
});
|
||||
|
||||
if (response.ok) {
|
||||
console.log('enter response ok <======');
|
||||
let parsed = await response.json();
|
||||
await createSession(parsed.token, email);
|
||||
console.log('complite response ok <======');
|
||||
} else {
|
||||
throw new Error(`
|
||||
-error-1. status: ${response.status}
|
||||
|
||||
Reference in New Issue
Block a user