diff --git a/assets/js/pagination.js b/assets/js/pagination.js
index 2d985920..ef32adae 100644
--- a/assets/js/pagination.js
+++ b/assets/js/pagination.js
@@ -68,7 +68,7 @@ addEventListener('DOMContentLoaded', function(){
const prev_page_containers = document.getElementsByClassName("page-prev-container")
for (let container of prev_page_containers) {
- if (pagination_data.is_locale_rtl) {
+ if (pagination_data.is_rtl) {
container.innerHTML = ``
} else {
container.innerHTML = ``