From 9230be73d18a999a93c7ff6f628c436b9c2b8dbc Mon Sep 17 00:00:00 2001 From: freddyheredia4 Date: Sat, 22 Jul 2023 05:23:45 -0500 Subject: [PATCH] quita substring --- src/hooks/saveWithAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/saveWithAuth.ts b/src/hooks/saveWithAuth.ts index 379c3a1..9569ef8 100644 --- a/src/hooks/saveWithAuth.ts +++ b/src/hooks/saveWithAuth.ts @@ -29,7 +29,7 @@ const fecher = async (url: string, id:string, token: string, data:any) => { if (response.ok){ data = await response.json(); }else { - error = "Servidor: "+ ((await response.json()).trace).substring(1,300); + error = "Servidor: "+ ((await response.json()).trace); } }catch (e){ error = "Cliente: "+e;