aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils.js
diff options
context:
space:
mode:
authorsecondl1ght <[email protected]>2022-08-22 18:00:00 -0400
committersecondl1ght <[email protected]>2022-08-22 18:00:00 -0400
commit1df70d0549ad73e1c89e54a0374e19e0ee20641e (patch)
tree1108dc3aed41e7bb25c13486ddff205a8d6d0f21 /src/lib/utils.js
parent0363a216681b22c2d0af07dd596d60c90ddec69b (diff)
downloadcoinos-ui-1df70d0549ad73e1c89e54a0374e19e0ee20641e.tar.gz
coinos-ui-1df70d0549ad73e1c89e54a0374e19e0ee20641e.zip
finish hooking up currency selection
Diffstat (limited to 'src/lib/utils.js')
-rw-r--r--src/lib/utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js
index 3f2f566e..a1bdf8d7 100644
--- a/src/lib/utils.js
+++ b/src/lib/utils.js
@@ -22,7 +22,7 @@ export const get = (url, headers = { accept: 'application/json' }) =>
export const post = (url, body, headers) => {
headers = { ...headers, accept: 'application/json', 'content-type': 'application/json' };
return fetch(base + url, {
- method: "POST",
+ method: 'POST',
body: JSON.stringify(body),
headers
})
@@ -44,7 +44,7 @@ export const post = (url, body, headers) => {
export const put = (url, body, headers) => {
headers = { ...headers, 'content-type': 'application/json' };
return fetch(base + url, {
- method: "PUT",
+ method: 'PUT',
body: JSON.stringify(body),
headers
});