From b9fabce89248cffa1955825e2b092732f600e9b9 Mon Sep 17 00:00:00 2001 From: KevinRohlf <123676073+KevinRohlf@users.noreply.github.com> Date: Tue, 12 Nov 2024 14:42:05 +0100 Subject: [PATCH] fix: go to service Button --- .../Asset/AssetActions/Download/index.tsx | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/components/Asset/AssetActions/Download/index.tsx b/src/components/Asset/AssetActions/Download/index.tsx index 977a83f9..8a3d0d40 100644 --- a/src/components/Asset/AssetActions/Download/index.tsx +++ b/src/components/Asset/AssetActions/Download/index.tsx @@ -38,6 +38,7 @@ import { Signer } from 'ethers' import SuccessConfetti from '@components/@shared/SuccessConfetti' import Input from '@components/@shared/FormInput' import ContractingProvider, { PAYMENT_MODES } from './ContractingProvider' +import Button from '@components/@shared/atoms/Button' export default function Download({ accountId, @@ -305,7 +306,28 @@ export default function Download({ size="large" /> )} - {!isInPurgatory && } + {!isInPurgatory && ( + <> + {asset?.metadata?.additionalInformation?.saas + ?.paymentMode === PAYMENT_MODES.PAYPERUSE && + asset?.metadata?.additionalInformation?.saas + ?.redirectUrl && ( +
+ +
+ )} + + + )}