open sign-in window when trying to upload as a guest

This commit is contained in:
MarconLP 2023-04-24 12:05:44 +02:00
parent 25aedc87cd
commit 55a5886b5c
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5

View file

@ -211,6 +211,13 @@ export default function Recorder({ closeModal, step, setStep }: Props) {
) {
posthog?.capture("recorder: video upload paywall hit");
setPaywallOpen(true);
} else if (err.data.code === "UNAUTHORIZED") {
window.open(
`/sign-in?redirect=${encodeURIComponent("/window-close")}`,
"Sign In",
"width=500,height=500"
);
posthog?.capture("recorder: guest tried to upload");
}
} else {
throw err;