mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(newsletter): Don't make API request if email is the same
This commit is contained in:
parent
2ce24bd4af
commit
ba606fff21
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class NewsletterSignup extends React.Component
|
||||||
@state = {status: 'Pending'}
|
@state = {status: 'Pending'}
|
||||||
|
|
||||||
componentWillReceiveProps: (nextProps) =>
|
componentWillReceiveProps: (nextProps) =>
|
||||||
@_onGetStatus(nextProps)
|
@_onGetStatus(nextProps) if not _.isEqual(@props, nextProps)
|
||||||
|
|
||||||
componentDidMount: =>
|
componentDidMount: =>
|
||||||
@_onGetStatus()
|
@_onGetStatus()
|
||||||
|
|
Loading…
Reference in a new issue