From 5f02fb061bfb593a567fc274038274fca3941f4b Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Sun, 26 Jun 2022 19:58:41 +0100 Subject: [PATCH] remove brackets --- src/services/api/api.service.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index 37b2062d..c942535e 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -483,7 +483,7 @@ const fetchConversation = ({ id, credentials }) => { if (data.ok) { return data } - throw new Error(['Error fetching timeline', errorStatusMapper(data)]) + throw new Error('Error fetching timeline', errorStatusMapper(data)) }) .then((data) => data.json()) .then(({ ancestors, descendants }) => ({ @@ -499,7 +499,7 @@ const fetchStatus = ({ id, credentials }) => { if (data.ok) { return data } - throw new Error(['Error fetching timeline', errorStatusMapper(data)]) + throw new Error('Error fetching timeline', errorStatusMapper(data)) }) .then((data) => data.json()) .then((data) => parseStatus(data))