From 93f9d0abf58c5b5154e35b63524405554042bef1 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Sat, 6 Aug 2022 00:04:55 -0600 Subject: finish withdraw UI, add more validation on support, bug fixes on tx hist --- src/lib/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib/utils.js') diff --git a/src/lib/utils.js b/src/lib/utils.js index 24f94d40..b42fe970 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -19,11 +19,11 @@ export const get = (url, headers = { accept: 'application/json' }) => }); export const post = (url, body, headers) => { - headers = { ...headers, accept: 'application/json', 'content-type': 'application/json' }; + headers = { ...headers, accept: 'application/json', 'content-type': 'application/json' }; return fetch(base + url, { method: 'POST', body: JSON.stringify(body), - headers + headers }) .then((r) => r.text()) .then((body) => { @@ -38,7 +38,7 @@ export const post = (url, body, headers) => { return body; }); -} +}; export const copy = (text) => { navigator.clipboard.writeText(text); -- cgit v1.2.3