We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bb677 commit 2b9550fCopy full SHA for 2b9550f
src/containers/recording-step.jsx
@@ -44,10 +44,10 @@ class RecordingStep extends React.Component {
44
alert(this.props.intl.formatMessage(messages.alertMsg)); // eslint-disable-line no-alert
45
}
46
handleLevelUpdate (level) {
47
- this.setState({level});
48
- if (this.props.recording) {
49
- this.setState({levels: (this.state.levels || []).concat([level])});
50
- }
+ this.setState({
+ level: level,
+ levels: this.props.recording ? (this.state.levels || []).concat([level]) : this.state.levels
+ });
51
52
handleRecord () {
53
this.audioRecorder.startRecording();
0 commit comments