- added sounds for all hotlist sounds
This commit is contained in:
@@ -47,11 +47,11 @@ export default function SightingHistoryWidget({ className, title }: SightingHist
|
||||
}, [state.NPEDsound]);
|
||||
|
||||
const soundSrcHotlist = useMemo(() => {
|
||||
return getSoundFileURL(state?.hotlists?.[0]?.sound) ?? notification;
|
||||
}, [state.hotlists]);
|
||||
return getSoundFileURL(state?.hotlistSound) ?? notification;
|
||||
}, [state?.hotlistSound]);
|
||||
|
||||
const { play: npedSound } = useSound(soundSrcNped, { volume: state.NPEDsoundVolume });
|
||||
const { play: hotlistsound } = useSound(soundSrcHotlist);
|
||||
const { play: hotlistsound } = useSound(soundSrcHotlist, { volume: state.hotlistSoundVolume });
|
||||
const {
|
||||
sightings,
|
||||
setSelectedSighting,
|
||||
|
||||
Reference in New Issue
Block a user