1
0

Updated the server.js

This commit is contained in:
Mathias Wagner 2023-11-24 10:39:49 +01:00
parent fded4f98a6
commit f607af3498
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -142,6 +142,12 @@ io.on("connection", (socket) => {
callback(false); callback(false);
return; return;
} }
if (priceInt.toString().indexOf(".") !== -1 || amountInt.toString().indexOf(".") !== -1
|| priceInt.toString().indexOf(",") !== -1 || amountInt.toString().indexOf(",") !== -1) {
callback(false);
return;
}
} catch (e) { } catch (e) {
callback(false); callback(false);
return; return;