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
commit2aa7156e12200798c45a53878dbcc37c77625752 (patch)
tree85d0cb70ec847bb7df8ca08ee5f5328ebc2600f4 /src/lib/utils.js
parentbc77cf10532a4060d97b0f804111b4f582151120 (diff)
downloadcoinos-ui-2aa7156e12200798c45a53878dbcc37c77625752.tar.gz
coinos-ui-2aa7156e12200798c45a53878dbcc37c77625752.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
});