From 0cf2605f38317a4314f0130481ee49bb33a4c25c Mon Sep 17 00:00:00 2001 From: Masen Furer Date: Wed, 20 Nov 2024 14:15:41 -0800 Subject: [PATCH] remove unnecessary parentheses --- reflex/components/sonner/toast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/components/sonner/toast.py b/reflex/components/sonner/toast.py index a1b38e7e7..a816051ce 100644 --- a/reflex/components/sonner/toast.py +++ b/reflex/components/sonner/toast.py @@ -253,7 +253,7 @@ class Toaster(Component): toast_command = f"{toast_ref}.{level}" if level is not None else toast_ref if isinstance(message, Var): props.setdefault("title", message) - elif message == "" and ("title" not in props and "description" not in props): + elif message == "" and "title" not in props and "description" not in props: raise ValueError("Toast message or title or description must be provided.") if props: args = LiteralVar.create(ToastProps(component_name="rx.toast", **props)) # type: ignore