fix: migration loop
This commit is contained in:
@@ -32,7 +32,7 @@ function MigrationButtons({ close }: { close: () => void }): JSX.Element {
|
|||||||
}
|
}
|
||||||
setProcessState(2);
|
setProcessState(2);
|
||||||
close();
|
close();
|
||||||
} else {
|
} else if (processState === 0) {
|
||||||
const { pendingMigration } = await chrome.storage.session.get('pendingMigration');
|
const { pendingMigration } = await chrome.storage.session.get('pendingMigration');
|
||||||
if (pendingMigration) setProcessState(1);
|
if (pendingMigration) setProcessState(1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user