From 230eaf522747431097bbb24a8c376281cb2b94ef Mon Sep 17 00:00:00 2001 From: Naveed Ahmad Date: Wed, 19 Apr 2017 23:17:42 +0500 Subject: [PATCH] fixed reading mode (#746) * fixed reading mode * lint --- src/components/Audioplayer/RepeatDropdown/index.js | 6 +++--- src/containers/Surah/index.js | 4 ++-- src/redux/modules/lines.js | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/components/Audioplayer/RepeatDropdown/index.js b/src/components/Audioplayer/RepeatDropdown/index.js index 6b58449c1..250714cea 100644 --- a/src/components/Audioplayer/RepeatDropdown/index.js +++ b/src/components/Audioplayer/RepeatDropdown/index.js @@ -61,7 +61,7 @@ class RepeatButton extends Component { value={repeat.from} onChange={(event) => { let to = parseInt(event.target.value, 10) + 3; - to = to < chapter.ayat ? to : chapter.ayat; + to = to < chapter.versesCount ? to : chapter.versesCount; setRepeat({ ...repeat, from: parseInt(event.target.value, 10), @@ -71,7 +71,7 @@ class RepeatButton extends Component { > { array.reduce((options, ayah, index) => { - if (index + 1 < chapter.ayat) { // Exclude last verse + if (index + 1 < chapter.versesCount) { // Exclude last verse options.push(