Open platform to collect and prioritize feedback
fix: don't assign props to state (#571)
Guilherme Oenning983dd82bdcb3
diff --git a/public/pages/ShowPost/components/NotificationsPanel.tsx b/public/pages/ShowPost/components/NotificationsPanel.tsxindex 46690c9d9..164225886 100644--- a/public/pages/ShowPost/components/NotificationsPanel.tsx+++ b/public/pages/ShowPost/components/NotificationsPanel.tsx@@ -15,7 +15,9 @@ interface NotificationsPanelState {export class NotificationsPanel extends React.Component<NotificationsPanelProps, NotificationsPanelState> {constructor(props: NotificationsPanelProps) {super(props);- this.state = this.props;+ this.state = {+ subscribed: this.props.subscribed+ };}private subscribeOrUnsubscribe = async () => {