From 35f3c46b2cea25f3ed78b7d29f178b8a8da1d397 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Thu, 13 May 2021 14:17:25 +0300 Subject: [PATCH] Making asset unavailable for purchase if the size is zero --- src/components/organisms/AssetActions/Consume.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/organisms/AssetActions/Consume.tsx b/src/components/organisms/AssetActions/Consume.tsx index 30ba32d08e..a34ca5c6fa 100644 --- a/src/components/organisms/AssetActions/Consume.tsx +++ b/src/components/organisms/AssetActions/Consume.tsx @@ -167,7 +167,11 @@ export default function Consume({
- {!isInPurgatory && } + {parseInt(file?.contentLength) === 0 ? ( +

This asset is currently unavailable for purchase.

+ ) : ( + !isInPurgatory && + )}