Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
refactor verses checker
Browse files Browse the repository at this point in the history
  • Loading branch information
aslamhadi committed Mar 26, 2017
1 parent 012fdea commit 44e74c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/helpers/buildSegments.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const buildSegments = (segments) => {
export const extractSegments = (verses) => {
const segments = {};

if (verses !== undefined) {
if (verses) {
Object.values(verses).forEach((verse) => {
if (verse.audio) {
if (verse.audio.segments) {
Expand Down
2 changes: 1 addition & 1 deletion src/redux/modules/fontFaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default function reducer(state = {}, action = {}) {
const verses = action.result.entities.verses;
const classNames = {};

if (verses !== undefined) {
if (verses) {
Object.keys(verses).forEach((ayahId) => {
const verse = verses[ayahId];

Expand Down

0 comments on commit 44e74c2

Please sign in to comment.