From 0fd64bfba0dae2cfcb6e610c892c0bc60ab34036 Mon Sep 17 00:00:00 2001 From: danis Date: Wed, 25 Jan 2023 17:39:23 +0300 Subject: [PATCH] clean code --- front/API.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/front/API.ts b/front/API.ts index bcd2e8c..b52c460 100644 --- a/front/API.ts +++ b/front/API.ts @@ -492,7 +492,6 @@ export default class API { try { if (dataKey == 'email') { this.getRequest('http://localhost:3000/users/24').then((res) => { - console.table(res); console.log(oldValue, newValue); if (res.email === oldValue) { this.patchRequest('http://localhost:3000/users/24', {'email': newValue}).finally(() => { @@ -502,7 +501,6 @@ export default class API { }); } else if (dataKey == 'password') { this.getRequest('http://localhost:3000/users/24').then((res) => { - console.table(res); if (res.password == oldValue) { this.patchRequest('http://localhost:3000/users/24', {'password': newValue}).finally(() => { return resolve('password successfully changed');