From 2cff56042576dc8cec74eef6abb23558ccd5d191 Mon Sep 17 00:00:00 2001 From: waltem01 Date: Fri, 8 Mar 2024 11:46:56 +0100 Subject: [PATCH] clean up: bugfixes --- Webserver/src/routes/clock/+page.svelte | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Webserver/src/routes/clock/+page.svelte b/Webserver/src/routes/clock/+page.svelte index 89d15e3..f5e703e 100644 --- a/Webserver/src/routes/clock/+page.svelte +++ b/Webserver/src/routes/clock/+page.svelte @@ -121,7 +121,10 @@ } // Displays a clock part on the matrix display - function displayClockPart(part: 'body' | 'seconds' | 'minutes' | 'hours', params: DisplayParams) { + async function displayClockPart( + part: 'body' | 'seconds' | 'minutes' | 'hours', + params: DisplayParams + ) { const fdata = new FormData(); if (part === 'body') { // If part is 'body', append the 'r' parameter to the form data @@ -138,7 +141,7 @@ fdata.append('x2', coords.x); fdata.append('y2', coords.y); } - return redirectAPI({ fdata }); + return await redirectAPI({ fdata }); } // Converts the x and y values from percentage to matrix coordinates