Commit b7d7b291 authored by norhalimah's avatar norhalimah

updating

parent b5a7e7dd
......@@ -205,6 +205,7 @@ class Listen extends React.Component {
if (success) {
// console.log('successfully finished playing');
this.setState({showMusic: false});
playSound.release();
} else {
// console.log('playback failed due to audio decoding errors');
playSound.release();
......
This diff is collapsed.
......@@ -98,6 +98,7 @@ class Quiz extends React.Component {
sound.play((success) => {
if (success) {
// console.log('successfully finished playing');
sound.release();
} else {
// console.log('playback failed due to audio decoding errors');
sound.release();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment