diff --git a/src/components/forgot_password/forgot_password_link.tsx b/src/components/forgot_password/forgot_password_link.tsx index f97e9df91c56e39d8249f79f20ec906f1d5bf712..8d4a330c2736242622cd161a0fa2a756d1b192fe 100644 --- a/src/components/forgot_password/forgot_password_link.tsx +++ b/src/components/forgot_password/forgot_password_link.tsx @@ -32,7 +32,7 @@ const ForgotPasswordLinkComponent = ({ disabled, tooltipPosition, tooltipWidth } </Link> const mapStateToProps = ({ config }: { config: any }) => ({ - disabled: config.nodeinfo ? !config.nodeinfo.metadata.mailerEnabled : false + disabled: (config.nodeinfo && config.nodeinfo.metadata) ? !config.nodeinfo.metadata.mailerEnabled : true }) export const ForgotPasswordLink = connect(mapStateToProps)(ForgotPasswordLinkComponent)