diff --git a/frontend/src/Modal/index.tsx b/frontend/src/Modal/index.tsx index 919a40d4..bed32181 100644 --- a/frontend/src/Modal/index.tsx +++ b/frontend/src/Modal/index.tsx @@ -7,6 +7,7 @@ interface ModalProps { render: () => JSX.Element; modalState: string; isError: boolean; + errorMessage?: string; } const Modal = (props: ModalProps) => { return ( @@ -35,7 +36,7 @@ const Modal = (props: ModalProps) => { {props.isError && (

- Please enter a valid API key + {props.errorMessage}

)}