diff --git a/src/discounts/components/VoucherList/VoucherList.tsx b/src/discounts/components/VoucherList/VoucherList.tsx index bc400e25a..a16532850 100644 --- a/src/discounts/components/VoucherList/VoucherList.tsx +++ b/src/discounts/components/VoucherList/VoucherList.tsx @@ -243,8 +243,12 @@ const VoucherList: React.FC = props => { {maybe(() => voucher.code, )} - {hasChannelsLoaded ? ( - + {voucher?.code ? ( + hasChannelsLoaded ? ( + + ) : ( + "-" + ) ) : ( )} @@ -269,19 +273,23 @@ const VoucherList: React.FC = props => { className={classes.colValue} onClick={voucher ? onRowClick(voucher.id) : undefined} > - {hasChannelsLoaded ? ( - voucher.discountValueType === - DiscountValueTypeEnum.FIXED ? ( - + /> + ) : ( + + ) ) : ( - + "-" ) ) : ( diff --git a/src/storybook/__snapshots__/Stories.test.ts.snap b/src/storybook/__snapshots__/Stories.test.ts.snap index 34bc36aca..4fd004819 100644 --- a/src/storybook/__snapshots__/Stories.test.ts.snap +++ b/src/storybook/__snapshots__/Stories.test.ts.snap @@ -87873,11 +87873,7 @@ exports[`Storyshots Views / Discounts / Voucher list no channels 1`] = ` - - ‌ - + - - - ‌ - + - - - ‌ - + - - - ‌ - + - = ({ max: 1 }, id: node.voucher?.id, - name: node.voucher?.name + name: node.voucher?.name || "-" } )} onRowClick={id =>