summaryrefslogtreecommitdiff
path: root/internal/handlers/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/main.go')
-rw-r--r--internal/handlers/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/handlers/main.go b/internal/handlers/main.go
index 4abc8e1..38da212 100644
--- a/internal/handlers/main.go
+++ b/internal/handlers/main.go
@@ -58,7 +58,8 @@ func (h *Handlers) HandleForm(w http.ResponseWriter, r *http.Request) {
h.log.Info("got postform request", "payload", r.PostForm)
magnitude := uint8(1)
mS := r.PostFormValue("magnitude")
- if mS != "1" || mS != "" || mS != " " {
+ h.log.Info("showing magnitude send", "mS", mS)
+ if mS != "1" {
u64, err := strconv.ParseUint(mS, 10, 64)
magnitude = uint8(u64)
if err != nil {