HotFix - Background not being transparent for [user]/[type] in embed (#3121)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
Hariom Balharaandkodiakhq[bot] authored and GitHub committed 2022-06-21 09:38:59 +00:00
1 parent dfc6373bb4
commit 993bd18a73
4 files changed
+28 -8

No files matched your search

@@ -229,7 +229,7 @@ export const useIsEmbed = () => {
// We can't simply return isEmbed() from this method.
// isEmbed() returns different values on server and browser, which messes up the hydration.
// TODO: We can avoid using document.URL and instead use Router.
const [_isEmbed, setIsEmbed] = useState(false);
const [_isEmbed, setIsEmbed] = useState<boolean | null>(null);
useEffect(() => {
setIsEmbed(isEmbed());
}, []);