From 997bfdf77a9678540cc9126e58c7ac043d702016 Mon Sep 17 00:00:00 2001 From: Sergiu Toma Date: Thu, 25 Feb 2021 13:18:16 +0000 Subject: [PATCH] Update 'src/App.js' --- src/App.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.js b/src/App.js index 3e35e75..a934904 100644 --- a/src/App.js +++ b/src/App.js @@ -190,7 +190,7 @@ class App extends Component { } handleLoginClick = async () => { - const loginRequest = await fetch('https://dev.linx.safemobile.com/api/login', { + const loginRequest = await fetch('https://stage.linx.safemobile.com/api/login', { method: 'POST', headers: { 'Content-Type': 'application/json' @@ -203,7 +203,7 @@ class App extends Component { const loginResponseJson = await loginRequest.json(); this.setState({ user: loginResponseJson.data }, () => { // Connect to HUB - this.setState({ socket: io("https://hub.dev.linx.safemobile.com/", {reconnect:true, transports: ['websocket']}) }, () => { + this.setState({ socket: io("https://hub.stage.linx.safemobile.com/", {reconnect:true, transports: ['websocket']}) }, () => { // socket = this.state.socket; this.state.socket.on('connect', () => { this.setState({ hubStatus: 2 })