Skip to content

Commit 5647336

Browse files
authored
sound-editor.jsx -- use slider value, not number
1 parent 85eca82 commit 5647336

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/containers/sound-editor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class SoundEditor extends React.Component {
509509
const menu = this.displayPopup("Modify Sound", 200, 280, "Apply", "Cancel", () => {
510510
// accepted
511511
audio.close();
512-
const pitch = pitchParts[1].value, volume = volumeParts[2].value;
512+
const pitch = pitchParts[1].value, volume = volumeParts[1].value;
513513
const truePitch = isNaN(Number(pitch)) ? 0 : Number(pitch);
514514
const trueVolume = isNaN(Number(volume)) ? 0 : Number(volume);
515515
this.handleEffect({

0 commit comments

Comments
 (0)