@@ -348,20 +348,19 @@ class SessionRecordingInner extends React.Component { this.recorder = undefined; this.audioBlobMp3 = blob; - this.updateAudioElementAndDuration(); // Stop recording this.stopRecordingState(); } + /** + * Stops recording and sets up audio element, updates recording state. + */ private async onStopRecordingClick() { this.stopRecordingStream(); this.updateAudioElementAndDuration(); - this.stopRecordingState(); } - - /** * Creates an audio element using the recorded audio blob. * Updates the duration for displaying audio duration.