Skip to content

Commit b901547

Browse files
committed
fix: handle missing appVersion in config store
1 parent a40e395 commit b901547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/backend/main.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ if (!gotTheLock) {
470470

471471
createInjectedProviderWindow()
472472

473-
const currentStoredVersion = configStore.get('appVersion')
473+
const currentStoredVersion = configStore.get('appVersion', '')
474474

475475
// Add MM reload here after a couple of version
476476
if (currentStoredVersion !== app.getVersion()) {

0 commit comments

Comments
 (0)