Skip to content

Commit

Permalink
fix: fix for cr
Browse files Browse the repository at this point in the history
  • Loading branch information
leleOFA committed Feb 27, 2025
1 parent e01a55e commit dab292f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const VirtualKeys: React.FC = () => {
)}
</Stack>

{!issuerState.tosAccepted ? (
{!issuerState.tosAccepted || !issuerState.issuer ? (
<EmptyState sentimentIcon={KnownSentiment.NONE}>
{t('virtualKeys.not-enabled-empty-state')}
</EmptyState>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,7 @@ const VirtualKeysTable: React.FC<Props> = ({
},
];

if (virtualKeys.items.length === 0 && !issuerIsPresent) {
return (
<EmptyState sentimentIcon={KnownSentiment.NONE}>
{t('virtualKeys.not-enabled-empty-state')}
</EmptyState>
);
} else if (!virtualKeys || virtualKeys.items.length === 0) {
if (!virtualKeys || virtualKeys.items.length === 0) {
return (
<EmptyState sentimentIcon={KnownSentiment.NONE}>{t('virtualKeys.empty-state')}</EmptyState>
);
Expand Down

0 comments on commit dab292f

Please sign in to comment.