Updated the server.js
This commit is contained in:
parent
fded4f98a6
commit
f607af3498
@ -142,6 +142,12 @@ io.on("connection", (socket) => {
|
||||
callback(false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (priceInt.toString().indexOf(".") !== -1 || amountInt.toString().indexOf(".") !== -1
|
||||
|| priceInt.toString().indexOf(",") !== -1 || amountInt.toString().indexOf(",") !== -1) {
|
||||
callback(false);
|
||||
return;
|
||||
}
|
||||
} catch (e) {
|
||||
callback(false);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user