open sign-in window when trying to upload as a guest
This commit is contained in:
parent
25aedc87cd
commit
55a5886b5c
1 changed files with 7 additions and 0 deletions
|
|
@ -211,6 +211,13 @@ export default function Recorder({ closeModal, step, setStep }: Props) {
|
||||||
) {
|
) {
|
||||||
posthog?.capture("recorder: video upload paywall hit");
|
posthog?.capture("recorder: video upload paywall hit");
|
||||||
setPaywallOpen(true);
|
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 {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue