From b610cdf40e82fc487fabf68b6a1d921754ccb792 Mon Sep 17 00:00:00 2001 From: Enubia <44695100+Enubia@users.noreply.github.com> Date: Sat, 27 Apr 2024 00:22:00 +0200 Subject: [PATCH] fix: correctly apply migrations --- electron/main/store.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/electron/main/store.ts b/electron/main/store.ts index f2578178..bb31c82c 100644 --- a/electron/main/store.ts +++ b/electron/main/store.ts @@ -82,6 +82,14 @@ export default function createStore() { '3.0.1': (store) => { store.delete('chatOptions'); }, + '3.0.2': (store) => { + const data: Twitch = { + ...StoreDefaults.options.twitch, + ...store.get('options.twitch'), + }; + + store.set('options.twitch', data); + }, }, }); }