Skip to content

Commit

Permalink
fix underscore in dict
Browse files Browse the repository at this point in the history
  • Loading branch information
adhami3310 committed Sep 11, 2024
1 parent f1ee584 commit f2028e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reflex/components/sonner/toast.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ def dict(self, *args, **kwargs) -> dict[str, Any]:
d["cancel"] = self.cancel
if isinstance(self.cancel, dict):
d["cancel"] = ToastAction(**self.cancel)
if "on_dismiss" in d:
d["on_dismiss"] = format.format_queue_events(
if "onDismiss" in d:
d["onDismiss"] = format.format_queue_events(
self.on_dismiss, _toast_callback_signature
)
if "on_auto_close" in d:
d["on_auto_close"] = format.format_queue_events(
if "onAutoClose" in d:
d["onAutoClose"] = format.format_queue_events(
self.on_auto_close, _toast_callback_signature
)
return d
Expand Down

0 comments on commit f2028e2

Please sign in to comment.