Skip to content

Commit

Permalink
fix: type guard
Browse files Browse the repository at this point in the history
  • Loading branch information
ljukas committed Oct 4, 2024
1 parent 98855df commit d594e08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ export const Toast = React.forwardRef<ToastRef, ToastProps>(
if (close) {
return close;
}
if (typeof closeButton === 'boolean' && closeButton) {
if (closeButton) {
return (
<Pressable
onPress={() => onDismiss?.(id)}
Expand Down

0 comments on commit d594e08

Please sign in to comment.