mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
remove duplicate toast
This commit is contained in:
@@ -169,12 +169,8 @@ 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());
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user