Skip to content

Commit

Permalink
fix(interest): move eligible and account calls to top interest comp
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip London committed May 27, 2020
1 parent bf3e321 commit 4310be4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ import {
import SummaryCard from './template.success'

class SummaryCardContainer extends PureComponent<Props> {
componentDidMount () {
this.props.interestActions.fetchInterestEligible()
this.props.interestActions.fetchInterestBalance()
}
render () {
return this.props.data.cata({
Success: val => <SummaryCard {...this.props} {...val} />,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ class Interest extends React.PureComponent<Props, StateType> {

componentDidMount () {
this.props.interestActions.fetchInterestRate()
this.props.interestActions.fetchInterestEligible()
this.props.interestActions.fetchInterestBalance()
}

componentDidUpdate (prevProps: Props) {
Expand Down

0 comments on commit 4310be4

Please sign in to comment.