fix: type fix

This commit is contained in:
zomars 2023-12-19 12:48:14 -07:00
parent 4d99a7fbdf
commit 27ce5e7808

View File

@ -517,7 +517,8 @@ const RedirectToInstantMeetingModal = ({ expiryTime }: { expiryTime?: Date }) =>
<Button
className="mt-4"
onClick={() => {
window.location.href = pathname;
// Prevent null on app directory
if (pathname) window.location.href = pathname;
}}
color="primary">
{t("go_back")}