Skip to content

Commit

Permalink
fix: issues (decentraland#514)
Browse files Browse the repository at this point in the history
* fix: show price only if on sale

* fix: pagination in transaction history
  • Loading branch information
cazala authored Jan 4, 2022
1 parent b30f8cc commit db063d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/AssetPage/ItemDetail/ItemDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const ItemDetail = ({ item, wallet }: Props) => {
}
box={
<>
<Price asset={item} />
{item.isOnSale && <Price asset={item} />}
<div className="BaseDetail row">
<Stats title={t('asset_page.stock')}>
{item.available > 0 ? (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const TransactionHistory = (props: Props) => {
setIsLoading(true)
let params: Record<string, string | number> = {
contractAddress: asset.contractAddress,
first: page * ROWS_PER_PAGE,
first: ROWS_PER_PAGE,
skip: (page - 1) * ROWS_PER_PAGE
}
if ('tokenId' in asset) {
Expand Down

0 comments on commit db063d4

Please sign in to comment.