mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Fix always success
This commit is contained in:
parent
5ba66db7b4
commit
74d31f4fad
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ function useBaseScrape() {
|
|||
const lastIdTmp = lastId.current;
|
||||
setSources((s) => {
|
||||
if (s[id]) s[id].status = "pending";
|
||||
if (lastIdTmp && s[lastIdTmp]) s[lastIdTmp].status = "success";
|
||||
if (lastIdTmp && s[lastIdTmp] && s[lastIdTmp].status === "pending")
|
||||
s[lastIdTmp].status = "success";
|
||||
return { ...s };
|
||||
});
|
||||
setCurrentSource(id);
|
||||
|
|
Loading…
Reference in a new issue