FIX: Fixed infinite loading

This commit is contained in:
Marcos Rodriguez Vélez 2018-12-29 14:09:12 -05:00
parent ca203785e6
commit eaddee91a6

View file

@ -78,7 +78,7 @@ export default class SendDetails extends Component {
fromAddress, fromAddress,
fromWallet, fromWallet,
fromSecret, fromSecret,
isLoading: true, isLoading: false,
address, address,
memo, memo,
fee: 1, fee: 1,
@ -131,7 +131,7 @@ export default class SendDetails extends Component {
fee: response.halfHourFee, fee: response.halfHourFee,
networkTransactionFees: response, networkTransactionFees: response,
feeSliderValue: response.halfHourFee, feeSliderValue: response.halfHourFee,
isLoading: typeof this.state.fromWallet === 'object', isLoading: typeof this.state.fromWallet !== 'object',
}); });
}); });
if (recommendedFees) { if (recommendedFees) {
@ -139,7 +139,7 @@ export default class SendDetails extends Component {
fee: recommendedFees.halfHourFee, fee: recommendedFees.halfHourFee,
networkTransactionFees: recommendedFees, networkTransactionFees: recommendedFees,
feeSliderValue: recommendedFees.halfHourFee, feeSliderValue: recommendedFees.halfHourFee,
isLoading: typeof this.state.fromWallet === 'object', isLoading: typeof this.state.fromWallet !== 'object',
}); });
if (this.props.navigation.state.params.uri) { if (this.props.navigation.state.params.uri) {