fix: migration loop

This commit is contained in:
Razboy20
2024-10-16 16:46:20 -05:00
parent 4629626a31
commit aeff5e09a2

View File

@@ -32,7 +32,7 @@ function MigrationButtons({ close }: { close: () => void }): JSX.Element {
}
setProcessState(2);
close();
} else {
} else if (processState === 0) {
const { pendingMigration } = await chrome.storage.session.get('pendingMigration');
if (pendingMigration) setProcessState(1);
}