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 (

{getLangText('Are you a member of any copyright societies?')}

@@ -145,7 +145,7 @@ let IkonotvContractNotifications = React.createClass({

{AppConstants.copyrightAssociations.join(', ')}

- +
); } diff --git a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_register_piece.js b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_register_piece.js index 700b5678..76880304 100644 --- a/js/components/whitelabel/wallet/components/ikonotv/ikonotv_register_piece.js +++ b/js/components/whitelabel/wallet/components/ikonotv/ikonotv_register_piece.js @@ -165,8 +165,8 @@ let IkonotvRegisterPiece = React.createClass({ }, canSubmit() { - let c = this.state.currentUser; - return c && c.acl && c.acl.acl_submit; + let currentUser = this.state.currentUser; + return currentUser && currentUser.acl && currentUser.acl.acl_submit; }, getSlideArtistDetails() {