Fix missing prop error
[MAILPOET-2838]
This commit is contained in:
committed by
Rostislav Wolný
parent
3c5563b48c
commit
67dbb78406
@@ -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;
|
||||
|
Reference in New Issue
Block a user