fix: stringify dependency

This commit is contained in:
MAZE 2024-01-03 14:14:01 +03:30
parent 93ff72a052
commit 1a23e004a6

View File

@ -25,7 +25,7 @@ export function ShareLinkModal({ onClose, show }: ShareLinkModalProps) {
volume: sounds[sound].volume.toFixed(1),
}))
.filter(sound => sound.isSelected);
}, [sounds]);
}, [sounds, JSON.stringify(sounds)]); // eslint-disable-line
const string = useMemo(() => {
const object: Record<string, number> = {};