diff --git a/front/src/lib/test-api.ts b/front/src/lib/test-api.ts index b840970..f45fcd5 100644 --- a/front/src/lib/test-api.ts +++ b/front/src/lib/test-api.ts @@ -74,19 +74,10 @@ export async function getItemsByUUID(items: string[]): Promise { } export async function getItemByUUID(uuid: string): Promise { - const data: Item[] = []; - - await getItemsByUUID([uuid]) - .then((result) => { - if (result.length !== 1) { - throw new Error("Resource could not be found"); - } - data.push(...result); - }) - .catch((error) => { - throw error; - }); - + const data = await getItemsByUUID([uuid]) + if (data.length !== 1) { + throw new Error("Resource could not be found"); + } return data[0]; } diff --git a/front/src/pages/Page404.svelte b/front/src/pages/Page404.svelte index fd10d2c..d3b3dec 100644 --- a/front/src/pages/Page404.svelte +++ b/front/src/pages/Page404.svelte @@ -11,12 +11,12 @@ @import "../styles/vars"; div { - padding: $spacing-large; - - height: 100%; + height: 400px; display: flex; flex-direction: column; + justify-content: center; + align-items: center; } h1 { display: flex; diff --git a/front/src/pages/Page500.svelte b/front/src/pages/Page500.svelte index 2a6bbe6..3200ebd 100644 --- a/front/src/pages/Page500.svelte +++ b/front/src/pages/Page500.svelte @@ -11,12 +11,12 @@ @import "../styles/vars"; div { - padding: $spacing-large; - - height: 100%; + height: 400px; display: flex; flex-direction: column; + justify-content: center; + align-items: center; } h1 { display: flex; diff --git a/front/src/pages/PageBooking.svelte b/front/src/pages/PageBooking.svelte index 8edc242..29081dc 100644 --- a/front/src/pages/PageBooking.svelte +++ b/front/src/pages/PageBooking.svelte @@ -1,4 +1,6 @@