Prévention bugs
continuous-integration/drone/push Build is passing Details

peristanceBDD
Alban GUILHOT 2 years ago
parent 2267eaa529
commit 172aeab0b5

@ -1,4 +1,4 @@
const { io } = require("socket.io-client"); const { io } = require("socket.io-client");
export const socket = io("http://192.168.1.54:3000"); export const socket = io("http://172.20.10.2:3000");

@ -24,7 +24,9 @@ export class LoaderConversationApi implements ILoaderConversation{
url: url, url: url,
}) })
.then(async function (response: any) { .then(async function (response: any) {
if (response.data != null || response.data != undefined){
tabConv=await jsonToConversation(response); tabConv=await jsonToConversation(response);
}
}); });
return tabConv; return tabConv;
} }

@ -18,6 +18,8 @@ export default class LoaderGameApi implements ILoaderGame{
}) })
.then(function (response: any) { .then(function (response: any) {
if (response.data != null || response.data != undefined){
response.data.forEach(game => { response.data.forEach(game => {
switch(game.type){ switch(game.type){
case "GameSolo": case "GameSolo":
@ -39,7 +41,7 @@ export default class LoaderGameApi implements ILoaderGame{
break; break;
} }
}); });
}
}); });
return tab; return tab;

Loading…
Cancel
Save