Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Maikoeliud committed Feb 3, 2023
1 parent 726620e commit 0ca2cca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/AssetTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ const AssetTab = () => {
return <div style={{ margin: '100px 50px', fontSize: '20px1' }}>Loading...</div>
}
const { assets } = selectedDataSet
const rowsNumber = rowsPerPage * (page + 1)
const rowsNumberPerPage = rowsNumber <= assets.length ? rowsNumber : assets.length
const numberOfRows = rowsPerPage * (page + 1)
const numberOfRowsPerPage = numberOfRows <= assets.length ? numberOfRows : assets.length

return (
<>
Expand Down Expand Up @@ -406,7 +406,7 @@ const AssetTab = () => {
</Typography>

<Typography variant="body2" color="grey.500" mb={3}>
Showing {rowsPerPage * page + 1} - {rowsNumberPerPage} out of {assets.length} individual assets
Showing {rowsPerPage * page + 1} - {numberOfRowsPerPage} out of {assets.length} individual assets
</Typography>
</Box>
</Box>
Expand Down

0 comments on commit 0ca2cca

Please sign in to comment.