From 6cca70a2909e305ad54969b6fe830edc93c221e7 Mon Sep 17 00:00:00 2001 From: danis Date: Sat, 28 Jan 2023 20:30:59 +0300 Subject: [PATCH] removed console.log + better reject message --- front/API.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/front/API.ts b/front/API.ts index b52c460..96056f7 100644 --- a/front/API.ts +++ b/front/API.ts @@ -509,8 +509,7 @@ export default class API { }); } } catch (error) { - console.error(error); - return reject("something went wrong: unable to update"); + return reject("something went wrong: unable to update the " + dataKey); } }, 1000);