diff --git a/dont_fret/web/components.py b/dont_fret/web/components.py index feb3492..892f829 100644 --- a/dont_fret/web/components.py +++ b/dont_fret/web/components.py @@ -69,7 +69,7 @@ def inputtext_cb(new_value: str) -> None: value = vtype(new_value) except ValueError: - if vtype == int: + if vtype is int: message.set("Input must be an integer") else: message.set("Input must be a number")