Remove cart from state
This commit is contained in:
@@ -34,15 +34,15 @@ var CheckoutPage = React.createClass({
|
|||||||
var last_used_payment;
|
var last_used_payment;
|
||||||
if(this.state.deliveryDestination.get('payment_method') == 'paypal') {
|
if(this.state.deliveryDestination.get('payment_method') == 'paypal') {
|
||||||
last_used_payment = (
|
last_used_payment = (
|
||||||
<PaypalButton disabled={!this.state.isDeliveryDestinationValid} onSubmitPaypal={this._handleOnSubmitPaypal} deliveryDestination={this.state.deliveryDestination} amount={CartStore.getAmount()} deliveryCost={CartStore.getDeliveryCost(false)} cartId={this.state.cart.get('id')}/>
|
<PaypalButton disabled={!this.state.isDeliveryDestinationValid} onSubmitPaypal={this._handleOnSubmitPaypal} deliveryDestination={this.state.deliveryDestination} amount={CartStore.getAmount()} deliveryCost={CartStore.getDeliveryCost(false)} cartId={this.state.deliveryDestination.get('id')}/>
|
||||||
);
|
);
|
||||||
} else if(this.state.deliveryDestination.get('payment_method') == 'pikpay') {
|
} else if(this.state.deliveryDestination.get('payment_method') == 'pikpay') {
|
||||||
last_used_payment = (
|
last_used_payment = (
|
||||||
<PikpayButton amount={CartStore.getAmount()} deliveryCost={CartStore.getDeliveryCost(false)} disabled={!this.state.isDeliveryDestinationValid} deliveryDestination={this.state.deliveryDestination} cartId={this.state.cart.get('id')}/>
|
<PikpayButton amount={CartStore.getAmount()} deliveryCost={CartStore.getDeliveryCost(false)} disabled={!this.state.isDeliveryDestinationValid} deliveryDestination={this.state.deliveryDestination} cartId={this.state.deliveryDestination.get('id')}/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
last_used_payment = (
|
last_used_payment = (
|
||||||
<CashOnDeliveryButton onCashClick={this._onOrderClick} disabled={!this.state.isDeliveryDestinationValid || this.state.deliveryDestination.get('gift')} cartId={this.state.cart.get('id')}/>
|
<CashOnDeliveryButton onCashClick={this._onOrderClick} disabled={!this.state.isDeliveryDestinationValid || this.state.deliveryDestination.get('gift')} cartId={this.state.deliveryDestination.get('id')}/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user