mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
mobile: skip migration progress during tests
This commit is contained in:
@@ -598,7 +598,8 @@ export const useAppEvents = () => {
|
||||
EV.subscribe(EVENTS.migrationStarted, (name) => {
|
||||
if (
|
||||
name !== "notesnook" ||
|
||||
!SettingsService.getProperty("introCompleted")
|
||||
!SettingsService.getProperty("introCompleted") ||
|
||||
Config.isTesting === "true"
|
||||
)
|
||||
return;
|
||||
startProgress({
|
||||
@@ -611,7 +612,8 @@ export const useAppEvents = () => {
|
||||
EV.subscribe(EVENTS.migrationFinished, (name) => {
|
||||
if (
|
||||
name !== "notesnook" ||
|
||||
!SettingsService.getProperty("introCompleted")
|
||||
!SettingsService.getProperty("introCompleted") ||
|
||||
Config.isTesting === "true"
|
||||
)
|
||||
return;
|
||||
endProgress();
|
||||
|
||||
Reference in New Issue
Block a user