From 2aa7156e12200798c45a53878dbcc37c77625752 Mon Sep 17 00:00:00 2001 From: secondl1ght <85003930+secondl1ght@users.noreply.github.com> Date: Mon, 22 Aug 2022 18:00:00 -0400 Subject: finish hooking up currency selection --- src/lib/utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/utils.js') 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 }); -- cgit v1.2.3