diff --git a/src/components/verify_email/thank_you.tsx b/src/components/verify_email/thank_you.tsx index 53740de..babb235 100644 --- a/src/components/verify_email/thank_you.tsx +++ b/src/components/verify_email/thank_you.tsx @@ -6,7 +6,7 @@ import './ThankYou.css'; const ThankYou: FC = () => { const location = useLocation(); type DynamicFormData = { - [key: string]: string; + [key: string]: any; }; if (location.state === null || location.state.formData === undefined) { @@ -30,7 +30,7 @@ const ThankYou: FC = () => {

{key}

{ - value.includes("\n") ? + typeof value === "string" && value.includes("\n") ? value .split("\n") .filter(str => str.trim() !== "") @@ -38,9 +38,9 @@ const ThankYou: FC = () => { :

{value}

}
- ))} - - + ))} + + ) ; }