From 10b21f775c62f04401c49a84906c4e7f6d689e1e Mon Sep 17 00:00:00 2001 From: Eugene Chybisov Date: Thu, 12 Sep 2024 10:03:56 +0200 Subject: [PATCH] fix: show vc only when status is done --- .../widget/src/pages/TransactionPage/StatusBottomSheet.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/widget/src/pages/TransactionPage/StatusBottomSheet.tsx b/packages/widget/src/pages/TransactionPage/StatusBottomSheet.tsx index 5f9f666c6..023ce76ad 100644 --- a/packages/widget/src/pages/TransactionPage/StatusBottomSheet.tsx +++ b/packages/widget/src/pages/TransactionPage/StatusBottomSheet.tsx @@ -252,7 +252,8 @@ export const StatusBottomSheetContent: React.FC< hasEnumFlag(status, RouteExecutionStatus.Done) && (contractCompactComponent || contractSecondaryComponent); - const VcComponent = feeConfig?._vcComponent; + const VcComponent = + status === RouteExecutionStatus.Done ? feeConfig?._vcComponent : undefined; return (