Fix missing prop error

[MAILPOET-2838]
This commit is contained in:
Jan Jakeš
2020-04-06 14:26:08 +02:00
committed by Rostislav Wolný
parent 3c5563b48c
commit 67dbb78406

View File

@@ -66,7 +66,7 @@ const removeUnauthorizedEmailNotices = () => {
type Props = {
onRequestClose: () => void,
setAuthorizedAddress: (address: string) => any,
setAuthorizedAddress?: (address: string) => any,
};
const SetFromAddressModal = ({ onRequestClose, setAuthorizedAddress }: Props) => {
@@ -141,4 +141,8 @@ const SetFromAddressModal = ({ onRequestClose, setAuthorizedAddress }: Props) =>
);
};
SetFromAddressModal.defaultProps = {
setAuthorizedAddress: () => {},
};
export default SetFromAddressModal;