From 60dbdfb9de6182245a3a207ae59fcf8a8ee5be3c Mon Sep 17 00:00:00 2001 From: snowcoding Date: Sat, 24 Aug 2019 15:25:33 -0700 Subject: [PATCH] [fix]: Pagination fix Fixes the issue of non-valid results when cards/page changes. This resets the current page to 0 with the cards/page is changed --- src/contexts/LaunchProvider.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/contexts/LaunchProvider.js b/src/contexts/LaunchProvider.js index ef7bdd5..41d8fc5 100644 --- a/src/contexts/LaunchProvider.js +++ b/src/contexts/LaunchProvider.js @@ -33,6 +33,7 @@ const reducer = (state, action) => { return { ...state, launchesPerPage: action.launchesPerPage, + paginationPage:0, } case 'changeLaunchSort':