From a5eb858f4abb20e35c925558af9c44f399aa2828 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Thu, 30 Nov 2023 10:49:07 +0300 Subject: [PATCH] apps/web: hide download document button if no href --- apps/web/components/Form/Files.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/components/Form/Files.tsx b/apps/web/components/Form/Files.tsx index 11c0e32..add884e 100644 --- a/apps/web/components/Form/Files.tsx +++ b/apps/web/components/Form/Files.tsx @@ -9,9 +9,9 @@ import { useContext } from 'react'; type DownloadDocumentProps = Pick; function DownloadDocument({ document }: DownloadDocumentProps) { - return document ? ( + return document?.href ? (