fix
This commit is contained in:
parent
460e20ed0d
commit
0ab09928d3
@ -51,10 +51,12 @@ class Main extends Component {
|
|||||||
this.setState({login_status: json})
|
this.setState({login_status: json})
|
||||||
})
|
})
|
||||||
fetch(addr_prefix + "/api/cart/delivery").then(resp => resp.json()).then(json => {
|
fetch(addr_prefix + "/api/cart/delivery").then(resp => resp.json()).then(json => {
|
||||||
this.setState({
|
if (json){
|
||||||
cart: [...this.state.cart, {"name": "Doprava na " + json, "id": 2, "price": delivery_cost, "locked": true, "quantity": 1}],
|
this.setState({
|
||||||
delivery: json,
|
cart: [...this.state.cart, {"name": "Doprava na " + json, "id": 2, "price": delivery_cost, "locked": true, "quantity": 1}],
|
||||||
})
|
delivery: json,
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
if(window.location.search){
|
if(window.location.search){
|
||||||
let searchParams = new URLSearchParams(window.location.search);
|
let searchParams = new URLSearchParams(window.location.search);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user