Fix 'refresh'
When the 'refresh' icon is clicked, we should reset 'endOfStream' to false or the stream will stop playing after the first ayah.
This commit is contained in:
parent
461b3a0092
commit
84c91974ed
1 changed files with 1 additions and 0 deletions
|
@ -62,6 +62,7 @@ function SurahStream({ node, reciters, locale, paused, t }: Props) {
|
|||
};
|
||||
|
||||
useEffect(() => {
|
||||
setEndOfStream(false);
|
||||
setStream([surah.ayat[0]]);
|
||||
}, [stream.length === 0]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue