Skip to content

Commit

Permalink
remove when owner, buy when not
Browse files Browse the repository at this point in the history
  • Loading branch information
orodio committed Jan 12, 2021
1 parent d34ca14 commit 682da8e
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/parts/market-item-cluster.comp.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ export function MarketItemCluster({address, id}) {
return (
<li>
<Bar>
<Button disabled={BUSY} onClick={list.buy}>
Buy
</Button>
<Button disabled={BUSY} onClick={list.cancelListing}>
Remove
</Button>
{item.owned ? (
<Button disabled={BUSY} onClick={list.cancelListing}>
Remove
</Button>
) : (
<Button disabled={BUSY} onClick={list.buy}>
Buy
</Button>
)}
<Label strong>Id:</Label>
<Label>{item.id}</Label>
<Label strong>Type:</Label>
Expand Down

0 comments on commit 682da8e

Please sign in to comment.