Fixed a bug in the ConfigurationArea.jsx
This commit is contained in:
@ -53,11 +53,11 @@ export const ConfigurationArea = ({current}) => {
|
|||||||
password: prompt("Password", "password")
|
password: prompt("Password", "password")
|
||||||
});
|
});
|
||||||
|
|
||||||
connection.on("login", (data) => {
|
connection.on("login", (event) => {
|
||||||
if (data.status === "failed") {
|
if (event.status === "failed") {
|
||||||
setConnectionFailed(true);
|
setConnectionFailed(true);
|
||||||
disconnect();
|
disconnect();
|
||||||
} else if (data.status === "success") {
|
} else if (event.status === "success") {
|
||||||
connection.emit("install", {name: current.name, data})
|
connection.emit("install", {name: current.name, data})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user