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>
|
||||
</TableCell>
|
||||
<TableCell className={classes.textRight}>
|
||||
{variant?.channelListings[0]?.price && (
|
||||
<Money
|
||||
money={variant.channelListings[0].price}
|
||||
/>
|
||||
{variant.channelListings.map(
|
||||
listing =>
|
||||
listing.channel.id ===
|
||||
selectedChannelId && (
|
||||
<Money money={listing.price} />
|
||||
)
|
||||
)}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
|
|
Loading…
Reference in a new issue