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