Display proper prices of selected channel in products add dialog

This commit is contained in:
Tomasz Szymanski 2021-02-12 09:01:51 +01:00
parent b3fe252f20
commit 4160fb685c

View file

@ -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>