From 1072c7a213baeace777d18b888eb43086afeb87e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 23 Aug 2022 02:26:09 -0700 Subject: generate new invoice on tip --- src/lib/utils.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib') diff --git a/src/lib/utils.js b/src/lib/utils.js index a1bdf8d7..65025c3a 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -47,6 +47,8 @@ export const put = (url, body, headers) => { method: 'PUT', body: JSON.stringify(body), headers + }).then(async (r) => { + if (!r.ok) throw new Error('put failed'); }); }; -- cgit v1.2.3 From 5de2a508609f84af1b94f53b098b05092599150c Mon Sep 17 00:00:00 2001 From: Adrien Hopkins Date: Tue, 23 Aug 2022 10:43:30 -0500 Subject: fixed broken translations & use json locales instead of JS --- src/components/About.svelte | 11 +- src/lib/translations/index.js | 23 +++- src/lib/translations/lang.json | 2 +- src/lib/translations/translations.js | 225 ----------------------------------- 4 files changed, 30 insertions(+), 231 deletions(-) delete mode 100644 src/lib/translations/translations.js (limited to 'src/lib') diff --git a/src/components/About.svelte b/src/components/About.svelte index 794a5107..3cd25f8c 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -54,9 +54,14 @@ -