Skip to content

Commit bceaa05

Browse files
committed
fix(store): fix listenAlong statement
1 parent 776cdac commit bceaa05

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/config/store.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ const setDefaultPluginOptions = (store: Conf<Record<string, unknown>>, plugin: k
2121

2222
const migrations = {
2323
'>=2.1.3'(store: Conf<Record<string, unknown>>) {
24-
if (store.get('plugins.discord.listenAlong')) {
25-
store.set('plugins.discord.playOnYouTubeMusic', true);
24+
const listenAlong = store.get('plugins.discord.listenAlong');
25+
if (listenAlong !== undefined) {
26+
store.set('plugins.discord.playOnYouTubeMusic', listenAlong);
2627
store.delete('plugins.discord.listenAlong');
2728
}
2829
},

0 commit comments

Comments
 (0)