Skip to content

Commit

Permalink
fix(toast): fixed build error when toast document is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
fluid-design-io committed Feb 5, 2023
1 parent b6e961a commit 00812d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/Toast/useToast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ export function ToastProvider({ children }) {
))}
</AnimatePresence>
</div>,
document.body
typeof document !== 'undefined' ? document.body : null
)}
</ToastContext.Provider>
);
Expand Down

0 comments on commit 00812d5

Please sign in to comment.