From 9728f13748567874a1225d10d41a9ba8a097482e Mon Sep 17 00:00:00 2001
From: frankienstan <88585538+frankienstan@users.noreply.github.com>
Date: Thu, 7 Sep 2023 16:45:34 +0530
Subject: [PATCH] feat: replace '\n' with '
' for line breaks in
wallet.about
---
src/pages/wallets/[walletid].js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/pages/wallets/[walletid].js b/src/pages/wallets/[walletid].js
index f06bfe6d..faec5f4f 100644
--- a/src/pages/wallets/[walletid].js
+++ b/src/pages/wallets/[walletid].js
@@ -374,7 +374,9 @@ export default function Wallet(props) {
sx={{ mt: [2.5, 5] }}
variant="body2"
dangerouslySetInnerHTML={{
- __html: marked.parse(wallet.about || 'NO DATA YET'),
+ __html: marked.parse(
+ (wallet.about || 'NO DATA YET').replace(/\\n/g, '
'),
+ ),
}}
/>