Skip to content

Commit

Permalink
fix: Fixed issue where app would not load when using snap
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Aug 11, 2023
1 parent 2122f40 commit c5c0bd6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/desktop/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ function migrateSnapStorage() {

const snapUserData = process.env['SNAP_USER_DATA']
const store = new Store(snapUserCommonDir)
if (snapUserData && store.data.backupsLocation.startsWith(path.resolve(snapUserData, '..'))) {
if (
snapUserData &&
store.data.backupsLocation &&
store.data.backupsLocation.startsWith(path.resolve(snapUserData, '..'))
) {
/**
* Backups location has not been altered by the user. Move it to the
* user documents directory
Expand Down

0 comments on commit c5c0bd6

Please sign in to comment.