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

Commit 337b134

Browse files
naveed-ahmadmmahalwy
authored andcommitted
fixed rendering of pause, sajdah and rub( pause word) (#666)
* fixed rendering of pause, sajdah and rub( pause word) * fixed lint errors
1 parent ec24f9b commit 337b134

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/Word/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@ export default class Word extends React.Component {
2020

2121
buildTooltip = (word, tooltip) => {
2222
let title;
23-
if (!word.wordId && word.charType === CHAR_TYPE_END) {
23+
24+
if (word.charType === CHAR_TYPE_END) {
2425
title = `Verse ${word.verseKey.split(':')[1]}`;
25-
} else {
26+
} else if (word.charType === CHAR_TYPE_WORD) {
2627
title = word[tooltip].text;
28+
} else {
29+
title = '';
2730
}
2831
return title;
2932
}

0 commit comments

Comments
 (0)