diff --git a/source/scripts/Background/controllers/MigrationController.ts b/source/scripts/Background/controllers/MigrationController.ts index 856502516..24eec7dd2 100644 --- a/source/scripts/Background/controllers/MigrationController.ts +++ b/source/scripts/Background/controllers/MigrationController.ts @@ -7,6 +7,11 @@ const MigrationController = async () => { const state = await loadState(); // get state from Storage API const currentPaliVersion = paliData.version; + if (!state) { + console.warn(' No state found in chrome storage'); + return; + } + /** * version < 3.0.1 * Description: Example of migration from version 3.0.0 to 3.0.1