diff --git a/js/actions/contract_agreement_list_actions.js b/js/actions/contract_agreement_list_actions.js index a5059ff0..93bc35ac 100644 --- a/js/actions/contract_agreement_list_actions.js +++ b/js/actions/contract_agreement_list_actions.js @@ -88,11 +88,6 @@ class ContractAgreementListActions { }); }); } - - flushContractAgreementList(){ - this.actions.updateContractAgreementList(null); - } - } export default alt.createActions(ContractAgreementListActions); diff --git a/js/components/ascribe_forms/form_loan.js b/js/components/ascribe_forms/form_loan.js index f8946486..6aef1f56 100644 --- a/js/components/ascribe_forms/form_loan.js +++ b/js/components/ascribe_forms/form_loan.js @@ -77,7 +77,7 @@ let LoanForm = React.createClass({ }, getContractAgreementsOrCreatePublic(email){ - ContractAgreementListActions.flushContractAgreementList(); + ContractAgreementListActions.flushContractAgreementList.defer(); if (email) { // fetch the available contractagreements (pending/accepted) ContractAgreementListActions.fetchAvailableContractAgreementList(email).then( diff --git a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_contract_notifications.js b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_contract_notifications.js index 0f631758..cfc80825 100644 --- a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_contract_notifications.js +++ b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_contract_notifications.js @@ -135,9 +135,9 @@ let IkonotvContractNotifications = React.createClass({ }, getCopyrightAssociationForm(){ - let c = this.state.currentUser; + let currentUser = this.state.currentUser; - if (c && c.profile && !c.profile.copyright_association) { + if (currentUser && currentUser.profile && !currentUser.profile.copyright_association) { return (
{AppConstants.copyrightAssociations.join(', ')}
-