style: format with biome

This commit is contained in:
UndefinedPony
2024-12-20 14:09:05 +01:00
parent d9a1976cc0
commit dd64b06340

View File

@@ -78,11 +78,17 @@ export const UpdateServer = () => {
await checkAndUpdateImage() await checkAndUpdateImage()
.then(async (updateAvailable) => { .then(async (updateAvailable) => {
setIsUpdateAvailable(updateAvailable); setIsUpdateAvailable(updateAvailable);
toast.info(updateAvailable ? "Update is available" : "No updates available"); toast.info(
updateAvailable
? "Update is available"
: "No updates available",
);
}) })
.catch(() => { .catch(() => {
setIsUpdateAvailable(false); setIsUpdateAvailable(false);
toast.error("An error occurred while checking for updates, please try again."); toast.error(
"An error occurred while checking for updates, please try again.",
);
}); });
}} }}
isLoading={isLoading} isLoading={isLoading}