Skip to content

Commit

Permalink
Added additional condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AZhurav1ev committed Oct 19, 2020
1 parent f9d48c3 commit 77d2fc8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 4 additions & 2 deletions enjoyhint.js
Original file line number Diff line number Diff line change
Expand Up @@ -1437,8 +1437,10 @@
else {
distance = initial_distance;
ver_button_position = initial_ver_position;
that.$next_btn.html(customBtnProps.nextButton ? customBtnProps.nextButton.text : 'Next');
that.$prev_btn.html(customBtnProps.prevButton ? customBtnProps.prevButton.text : 'Previous');
that.$next_btn.html(customBtnProps.nextButton && customBtnProps.nextButton.text ?
customBtnProps.nextButton.text : 'Next');
that.$prev_btn.html(customBtnProps.prevButton && customBtnProps.prevButton.text ?
customBtnProps.prevButton.text : 'Previous');
}

that.$prev_btn.css({
Expand Down
Loading

0 comments on commit 77d2fc8

Please sign in to comment.