Skip to content

Commit

Permalink
Update use-toaster.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
AMagicHarry committed Sep 22, 2022
1 parent d8afdb6 commit abd8acb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/pages/docs/use-toaster.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const Notifications = () => {
});

const ref = (el) => {
if (el && !toast.height) {
if (el && typeof toast.height !== "number") {
const height = el.getBoundingClientRect().height;
updateHeight(toast.id, height);
}
Expand Down

0 comments on commit abd8acb

Please sign in to comment.