remove duplicate toast

This commit is contained in:
proddy
2024-07-06 19:26:22 +02:00
parent 8a4218206d
commit 5eb56c3243

View File

@@ -169,13 +169,9 @@ const UploadDownload: FC = () => {
}; };
const downloadSchedule = async () => { const downloadSchedule = async () => {
await getSchedule() await getSchedule().catch((error: Error) => {
.catch((error: Error) => { toast.error(error.message);
toast.error(error.message); });
})
.finally(() => {
toast.info(LL.DOWNLOAD_SUCCESSFUL());
});
}; };
const callAPI = async (device: string, entity: string) => { const callAPI = async (device: string, entity: string) => {