Skip to content

Commit

Permalink
fix: fix next page button in datatable pagination (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
unikvozm committed Dec 14, 2020
1 parent 08a7c81 commit 7d408ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/DataTable/DataTablePagination.tsx
Expand Up @@ -128,7 +128,7 @@ const DataTablePagination = ({
/>
)}
color={theme.colors.text}
disabled={page === numberOfPages - 1}
disabled={numberOfPages === 0 || page === numberOfPages - 1}
onPress={() => onPageChange(page + 1)}
/>
</View>
Expand Down

0 comments on commit 7d408ab

Please sign in to comment.