aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-08-06 00:04:55 -0600
committersecondl1ght <[email protected]>2022-08-06 00:04:55 -0600
commit93f9d0abf58c5b5154e35b63524405554042bef1 (patch)
treef41273fc1e2f99066a2ad3d7d22b2e3578583f13 /src/lib/utils.js
parentdcd4fe70f6f23a5ac2df3b773fea89c1acd878b6 (diff)
downloadcoinos-ui-93f9d0abf58c5b5154e35b63524405554042bef1.tar.gz
coinos-ui-93f9d0abf58c5b5154e35b63524405554042bef1.zip
finish withdraw UI, add more validation on support, bug fixes on tx hist
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js6
1 files changed, 3 insertions, 3 deletions
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);