Fix skeleton
This commit is contained in:
parent
7f70864ffb
commit
7c6ef4d41d
1 changed files with 3 additions and 5 deletions
|
@ -220,11 +220,9 @@ const VoucherList: React.FC<VoucherListProps> = props => {
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className={classes.colUses}>
|
<TableCell className={classes.colUses}>
|
||||||
{voucher && voucher.usageLimit ? (
|
{maybe<React.ReactNode>(
|
||||||
voucher.usageLimit
|
() =>
|
||||||
) : voucher && voucher.usageLimit === null ? (
|
voucher.usageLimit === null ? "-" : voucher.usageLimit,
|
||||||
"-"
|
|
||||||
) : (
|
|
||||||
<Skeleton />
|
<Skeleton />
|
||||||
)}
|
)}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
|
Loading…
Reference in a new issue