Skip to content

Commit

Permalink
feat(saved posts): use user settings for posts per page
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Oct 5, 2021
1 parent d15d7c7 commit 844acde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/premium/saved-posts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default {
},
computed: {
...mapGetters('user', ['getSavedPosts']),
...mapGetters('user', ['getSavedPosts', 'getUserSettings']),
boorusThatHaveSavedPosts() {
const BOORU_DOMAIN_LIST = this.getSavedPosts.map(
Expand Down Expand Up @@ -99,7 +99,7 @@ export default {
paginatedSavedPosts() {
const SAVED_POSTS = this.savedPostsFromSelectedBooru
const POSTS_PER_PAGE = 20
const POSTS_PER_PAGE = this.getUserSettings.postsPerPage.value
const PAGINATED_SAVED_POSTS = paginateArray(
SAVED_POSTS,
Expand Down

0 comments on commit 844acde

Please sign in to comment.