fix: update og card

This commit is contained in:
Mythie
2023-08-31 15:36:09 +10:00
parent b12f5b62f1
commit d0cedc489f
8 changed files with 62 additions and 30 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

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