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 className={classes.colUses}>
|
||||
{voucher && voucher.usageLimit ? (
|
||||
voucher.usageLimit
|
||||
) : voucher && voucher.usageLimit === null ? (
|
||||
"-"
|
||||
) : (
|
||||
{maybe<React.ReactNode>(
|
||||
() =>
|
||||
voucher.usageLimit === null ? "-" : voucher.usageLimit,
|
||||
<Skeleton />
|
||||
)}
|
||||
</TableCell>
|
||||
|
|
Loading…
Reference in a new issue