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