Wizard: Migrate ActivationKeyInformation to TypeScript

This migrates the ActivationKeyInformation component to TypeScript
This commit is contained in:
regexowl 2023-08-08 16:09:11 +02:00 committed by Klara Simickova
parent ac70712f6a
commit cdce271306

View file

@ -26,7 +26,7 @@ import {
import { useShowActivationKeyQuery } from '../../../store/rhsmApi';
const ActivationKeyInformation = () => {
const ActivationKeyInformation = (): JSX.Element => {
const { getState } = useFormApi();
const { currentStep } = useContext(WizardContext);
@ -101,7 +101,8 @@ const ActivationKeyInformation = () => {
component={TextListItemVariants.dd}
className="pf-u-display-flex pf-u-align-items-flex-end"
>
{activationKeyInfo.body?.additionalRepositories?.length > 0 ? (
{activationKeyInfo.body?.additionalRepositories &&
activationKeyInfo.body?.additionalRepositories?.length > 0 ? (
<Popover
bodyContent={
<TextContent>