Updates price placeholder when post only slide

This commit is contained in:
Kieran Gillen 2022-04-01 14:37:59 +02:00
parent a39a32625a
commit 0c72cf85f7
1 changed files with 3 additions and 1 deletions

View File

@ -808,7 +808,9 @@ export default function AdvancedTradeForm({
onChange={(e) => onSetPrice(e.target.value)}
value={postOnlySlide ? '' : price}
disabled={isMarketOrder || postOnlySlide}
placeholder={tradeType === 'Market' ? markPrice : null}
placeholder={
tradeType === 'Market' && !postOnlySlide ? markPrice : ''
}
prefix={
<>
{!postOnlySlide && (