From 150931e7b1abe127a86512f39594847ef52408ec Mon Sep 17 00:00:00 2001 From: Micha Vie Date: Wed, 29 May 2024 20:46:22 +0200 Subject: [PATCH] fix action preview extension names --- src/shared/ui/ActionPreview.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/ui/ActionPreview.tsx b/src/shared/ui/ActionPreview.tsx index e271cdf..3f77d48 100644 --- a/src/shared/ui/ActionPreview.tsx +++ b/src/shared/ui/ActionPreview.tsx @@ -2,6 +2,7 @@ import React from 'react' import { clsx } from 'clsx' import BigNumber from 'bignumber.js' import { _AppLogo } from './_AppLogo' +import { toExtensionName } from '../helpers' import { ProposalAction } from '@peerme/core-ts' import { ExtensionConfig, ExtensionInfo } from '../types' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' @@ -41,7 +42,7 @@ export const ActionPreview = (props: Props) => { className="inline-block w-10 sm:w-12 md:w-14" size={50} /> - {props.extension.Name} + {toExtensionName(props.config, props.extension)} {!!scInfo?.ActionPreview && (