refactor: run formatter

This commit is contained in:
Elias Schneider
2025-02-28 11:18:10 +01:00
parent e77edfd5d3
commit dc30f4f3c9
3 changed files with 18 additions and 15 deletions

View File

@@ -413,7 +413,7 @@ const Account = () => {
onConfirm: async () => {
await userService
.removeCurrentUser()
.then(()=> window.location.reload())
.then(() => window.location.reload())
.catch(toast.axiosError);
},
})

View File

@@ -54,19 +54,22 @@ const Admin = () => {
]);
useEffect(() => {
configService.isNewReleaseAvailable().then((isNewReleaseAvailable) => {
if (isNewReleaseAvailable) {
setManagementOptions([
...managementOptions,
{
title: "Update",
icon: TbRefresh,
route:
"https://github.com/stonith404/pingvin-share/releases/latest",
},
]);
}
}).catch();
configService
.isNewReleaseAvailable()
.then((isNewReleaseAvailable) => {
if (isNewReleaseAvailable) {
setManagementOptions([
...managementOptions,
{
title: "Update",
icon: TbRefresh,
route:
"https://github.com/stonith404/pingvin-share/releases/latest",
},
]);
}
})
.catch();
}, []);
return (