fix typescript error in Recorder.tsx

This commit is contained in:
MarconLP 2023-04-24 13:12:20 +02:00
parent ed7bfc57c0
commit c980d4e784
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5

View file

@ -211,7 +211,7 @@ 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") { } else if (err.message === "UNAUTHORIZED") {
window.open( window.open(
`/sign-in?redirect=${encodeURIComponent("/window-close")}`, `/sign-in?redirect=${encodeURIComponent("/window-close")}`,
"Sign In", "Sign In",