Display proper prices of selected channel in products add dialog
This commit is contained in:
parent
b3fe252f20
commit
4160fb685c
1 changed files with 6 additions and 4 deletions
|
@ -332,10 +332,12 @@ const OrderProductAddDialog: React.FC<OrderProductAddDialogProps> = props => {
|
||||||
</div>
|
</div>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className={classes.textRight}>
|
<TableCell className={classes.textRight}>
|
||||||
{variant?.channelListings[0]?.price && (
|
{variant.channelListings.map(
|
||||||
<Money
|
listing =>
|
||||||
money={variant.channelListings[0].price}
|
listing.channel.id ===
|
||||||
/>
|
selectedChannelId && (
|
||||||
|
<Money money={listing.price} />
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|
Loading…
Reference in a new issue