Comments fixed

This commit is contained in:
Bartosz Hernas 2020-09-15 12:03:34 +02:00
parent d6d1c68e6d
commit d5e4914153
2 changed files with 24 additions and 24 deletions

View file

@ -6,7 +6,7 @@ import useFetch from 'hooks/useFetch';
export default function SharePage() {
const router = useRouter();
const { id, frame } = router.query;
const { id } = router.query;
const shareId = id?.[0];
const { data } = useFetch(shareId ? `/api/share/${shareId}` : null);
@ -15,7 +15,7 @@ export default function SharePage() {
}
return (
<Layout header={!frame} footer={!frame}>
<Layout>
<WebsiteDetails websiteId={data.website_id} />
</Layout>
);