Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
anc95 committed Jun 30, 2023
1 parent 49ef7da commit 2dc12c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/store/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ export const saveSetting = async (newSettings: Partial<Settings>) => {
const remoteSettings = omit(settings, 'customInstructions')

browser.storage.sync.set({
[key]: localNewSettings,
[key]: remoteSettings,
})

if (localNewSettings) {
browser.storage.local.set({ [key]: remoteSettings })
browser.storage.local.set({ [key]: localNewSettings })
}
}

Expand Down

0 comments on commit 2dc12c7

Please sign in to comment.