mirror of
https://github.com/yusufipk/OpenFrame.git
synced 2026-09-11 17:46:06 +00:00
refactor: eslint and prettier conflict will be resolved and formatted
This commit is contained in:
@@ -32,7 +32,10 @@ export function ShareLinkBootstrap({ videoId, shareToken }: ShareLinkBootstrapPr
|
||||
return;
|
||||
}
|
||||
|
||||
const payload = (await response.json().catch(() => null)) as { requiresPassword?: boolean; error?: string } | null;
|
||||
const payload = (await response.json().catch(() => null)) as {
|
||||
requiresPassword?: boolean;
|
||||
error?: string;
|
||||
} | null;
|
||||
if (payload?.requiresPassword) {
|
||||
router.replace(`/watch/${videoId}?unlock=1`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user