Skip to content

Commit

Permalink
fix: 🐛 little bug with incoming /precision clear message
Browse files Browse the repository at this point in the history
  • Loading branch information
dewiweb committed Feb 26, 2024
1 parent ba28583 commit ab18ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ function handleMode(args) {
function handlePrecision(args) {
// Function implementation for handling "/precision" address
const precisionValue = args[0].value;
if (precisionValue === "1" || precisionValue === "10" || precisionValue === "100" || precisionValue === "1000" || precisionValue === "100000" || precisionValue === "1clear") {
if (precisionValue === "1" || precisionValue === "10" || precisionValue === "100" || precisionValue === "1000" || precisionValue === "100000" || precisionValue === "clear") {
win.webContents.send("precisionChanged", precisionValue);
}else{
win.webContents.send("logInfo", "Invalid precision value: " + precisionValue);
Expand Down

0 comments on commit ab18ca7

Please sign in to comment.