Commit 6aa999f7 authored by aballerr's avatar aballerr Committed by GitHub

fix: Web 2398 (#5488)

* adding highlight when no value for selling has been set
parent 0a3f8636
......@@ -164,7 +164,7 @@ const PriceTextInput = ({
? 'genieBlue'
: listPrice != null
? 'textSecondary'
: 'gray700'
: 'blue400'
}
>
<NumericInput
......@@ -326,8 +326,6 @@ const MarketplaceRow = ({
: asset.basisPoints) * 0.01
const feeInEth = price && (price * (royalties + marketplaceFee)) / 100
const userReceives = price && feeInEth && price - feeInEth
const profit = userReceives && asset.lastPrice && userReceives - asset.lastPrice
const profitPercent = profit && asset.lastPrice && Math.round(profit && (profit / asset.lastPrice) * 100)
useEffect(() => {
if (globalPriceMethod === SetPriceMethod.FLOOR_PRICE) {
......@@ -449,17 +447,6 @@ const MarketplaceRow = ({
<Row style={{ flex: '1.5' }} display={{ sm: 'none', md: 'flex' }}>
<Column width="full">
<EthPriceDisplay ethPrice={userReceives} />
{(showGlobalPrice ? globalPrice && globalPrice !== 0 : listPrice !== 0) && (
<Row marginTop="4" width="full" fontSize="12" color="textSecondary">
{profit ? <Box marginLeft="auto">Profit: {formatEth(profit)} ETH</Box> : null}
{profitPercent ? (
<Box marginLeft="8" marginRight="0">
({profitPercent > 0 && '+'}
{profitPercent > 1000 ? Math.round(profitPercent / 1000) + 'K' : profitPercent}%)
</Box>
) : null}
</Row>
)}
</Column>
</Row>
</Row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment