mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
improve auto dj to trigger on remaining songs change
This commit is contained in:
@@ -169,7 +169,7 @@ export const useAutoDJ = () => {
|
||||
},
|
||||
{
|
||||
equalityFn: (a, b) => {
|
||||
return a.song?._uniqueId === b.song?._uniqueId;
|
||||
return a.song?._uniqueId === b.song?._uniqueId && a.remaining === b.remaining;
|
||||
},
|
||||
},
|
||||
);
|
||||
|
||||
@@ -66,7 +66,7 @@ export const AutoDJSettings = () => {
|
||||
return (
|
||||
<SettingsSection
|
||||
options={autoDJOptions}
|
||||
title={t('setting.autoDJ', { postProcess: 'upperCase' })}
|
||||
title={t('setting.autoDJ', { postProcess: 'titleCase' })}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user