fix: update og card

This commit is contained in:
Mythie
2023-08-31 15:36:09 +10:00
parent f1f6e2e40a
commit 8d4df7d3dd
8 changed files with 63 additions and 31 deletions

View File

@ -1,12 +1,13 @@
'use client';
import React from 'react';
import { useEffect } from 'react';
export default function Redirect() {
React.useEffect(() => {
useEffect(() => {
const timer = setTimeout(() => {
window.location.href = 'https://www.documenso.com';
}, 3000);
return () => clearTimeout(timer);
}, []);

View File

@ -34,11 +34,11 @@ export default async function SigningPage({ params: { token } }: SigningPageProp
token,
}).catch(() => null),
getFieldsForToken({ token }),
getRecipientByToken({ token }),
viewedDocument({ token }),
getRecipientByToken({ token }).catch(() => null),
viewedDocument({ token }).catch(() => null),
]);
if (!document) {
if (!document || !recipient) {
return notFound();
}