Skip to content

Commit 219030f

Browse files
authored
Merge pull request timolins#225 from pipboy3000/pipboy3000-patch-1
Update use-toaster.mdx
2 parents bbbd747 + 7ff5b9f commit 219030f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/pages/docs/use-toaster.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const Notifications = () => {
9292
});
9393

9494
const ref = (el) => {
95-
if (el && !toast.height) {
95+
if (el && typeof toast.height !== "number") {
9696
const height = el.getBoundingClientRect().height;
9797
updateHeight(toast.id, height);
9898
}

0 commit comments

Comments
 (0)