mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +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) => {
|
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 (
|
return (
|
||||||
<SettingsSection
|
<SettingsSection
|
||||||
options={autoDJOptions}
|
options={autoDJOptions}
|
||||||
title={t('setting.autoDJ', { postProcess: 'upperCase' })}
|
title={t('setting.autoDJ', { postProcess: 'titleCase' })}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user