Skip to content

Commit 77d2fc8

Browse files
author
AZhurav1ev
committed
Added additional condition
1 parent f9d48c3 commit 77d2fc8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

enjoyhint.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1437,8 +1437,10 @@
14371437
else {
14381438
distance = initial_distance;
14391439
ver_button_position = initial_ver_position;
1440-
that.$next_btn.html(customBtnProps.nextButton ? customBtnProps.nextButton.text : 'Next');
1441-
that.$prev_btn.html(customBtnProps.prevButton ? customBtnProps.prevButton.text : 'Previous');
1440+
that.$next_btn.html(customBtnProps.nextButton && customBtnProps.nextButton.text ?
1441+
customBtnProps.nextButton.text : 'Next');
1442+
that.$prev_btn.html(customBtnProps.prevButton && customBtnProps.prevButton.text ?
1443+
customBtnProps.prevButton.text : 'Previous');
14421444
}
14431445

14441446
that.$prev_btn.css({

0 commit comments

Comments
 (0)