feat(sound): 우하단 빠른 볼륨/3프리셋 및 더미 저장 복원 적용
This commit is contained in:
@@ -11,10 +11,8 @@ const isQuickAvailablePreset = (preset: SoundPreset | undefined): preset is Soun
|
||||
return !PRO_LOCKED_SOUND_IDS.includes(preset.id);
|
||||
};
|
||||
|
||||
export const getQuickSoundPresets = (presets: SoundPreset[], selectedPresetId: string) => {
|
||||
const uniquePresetIds = Array.from(new Set([selectedPresetId, ...QUICK_SOUND_FALLBACK_IDS]));
|
||||
|
||||
return uniquePresetIds
|
||||
export const getQuickSoundPresets = (presets: SoundPreset[]) => {
|
||||
return QUICK_SOUND_FALLBACK_IDS
|
||||
.map((presetId) => presets.find((preset) => preset.id === presetId))
|
||||
.filter(isQuickAvailablePreset)
|
||||
.slice(0, 3);
|
||||
|
||||
Reference in New Issue
Block a user