From 050e2a16941d7e48fcc73c9c0f36f24a740e5c75 Mon Sep 17 00:00:00 2001 From: abhishek-01k Date: Wed, 16 Oct 2024 15:43:49 +0530 Subject: [PATCH] fix: modified the address for the reply preview --- .../chat/ChatViewBubbleCore/cards/reply/ReplyCard.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/cards/reply/ReplyCard.tsx b/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/cards/reply/ReplyCard.tsx index ac8ababe6..cd4097825 100644 --- a/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/cards/reply/ReplyCard.tsx +++ b/packages/uiweb/src/lib/components/chat/ChatViewBubbleCore/cards/reply/ReplyCard.tsx @@ -17,6 +17,7 @@ import { CardRenderer } from '../../CardRenderer'; // Interfaces & Types import { IMessagePayload } from '../../../exportedTypes'; +import { pCAIP10ToWallet, shortenText } from '../../../../../helpers'; // Constants @@ -161,9 +162,7 @@ export const ReplyCard = ({ fontWeight="500" padding="0px" > - {`${replyPayloadManager.payload.fromDID - ?.split(':')[1] - .slice(0, 6)}...${replyPayloadManager.payload.fromDID?.split(':')[1].slice(-6)}`} + {shortenText(pCAIP10ToWallet(replyPayloadManager.payload.fromDID), 6, true)}