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 () => {
await getSchedule()
.catch((error: Error) => {
toast.error(error.message);
})
.finally(() => {
toast.info(LL.DOWNLOAD_SUCCESSFUL());
});
await getSchedule().catch((error: Error) => {
toast.error(error.message);
});
};
const callAPI = async (device: string, entity: string) => {