diff --git a/src/components/views/settings/Notifications.tsx b/src/components/views/settings/Notifications.tsx index 766ba2c9c0..2f3f7abe4b 100644 --- a/src/components/views/settings/Notifications.tsx +++ b/src/components/views/settings/Notifications.tsx @@ -480,7 +480,7 @@ export default class Notifications extends React.PureComponent { return masterSwitch; } - const emailSwitches = this.state.threepids.filter(t => t.medium === ThreepidMedium.Email) + const emailSwitches = (this.state.threepids || []).filter(t => t.medium === ThreepidMedium.Email) .map(e => p.kind === "email" && p.pushkey === e.address)}