Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Audioplayer/Track/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export default class Track extends Component {
const { shouldRepeat, onEnd, isStarted, doStop, currentAyah, surah } = this.props;

// if we're on the last ayah, do a full stop at the playback end
if (`${currentAyah === surah.id}:${surah.ayat}`) return doStop();
if (currentAyah === `${surah.id}:${surah.ayat}`) return doStop();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh wow! Nice find!


if (isStarted && shouldRepeat) {
file.pause();
Expand Down