Skip to content

Commit 2a2c834

Browse files
committed
f
1 parent 0aed560 commit 2a2c834

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/mods/app/session/account/mod.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function AccountCardInGrid(props: { $entry: KDBX.Inner.KeePassFile.Entry
142142
return $entry.getDirectStringByKeyOrNull("BitcoinAddress")?.getValueOrThrow().get()
143143

144144
if (type === "monero")
145-
return $entry.getDirectStringByKeyOrNull("MoneroAddress")?.getValueOrThrow().get()
145+
return $entry.getDirectStringByKeyOrNull("MoneroAddress")?.getValueOrThrow().get().slice(0, 56) + "..."
146146

147147
if (type === "seed")
148148
return $entry.getDirectStringByKeyOrNull("SeedPhrase")?.getValueOrThrow().get().split(" ").at(0)
@@ -269,7 +269,7 @@ export function AccountCard(props: { $entry: KDBX.Inner.KeePassFile.Entry }) {
269269
return $entry.getDirectStringByKeyOrNull("BitcoinAddress")?.getValueOrThrow().get()
270270

271271
if (type === "monero")
272-
return $entry.getDirectStringByKeyOrNull("MoneroAddress")?.getValueOrThrow().get()
272+
return $entry.getDirectStringByKeyOrNull("MoneroAddress")?.getValueOrThrow().get().slice(0, 56) + "..."
273273

274274
if (type === "seed")
275275
return $entry.getDirectStringByKeyOrNull("SeedPhrase")?.getValueOrThrow().get().split(" ").at(0)

src/mods/app/session/account/monero/mod.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ export function StandaloneMoneroAccountAddPage() {
340340
</div>
341341
<div className="h-4" />
342342
<div className="text-default-half-contrast text-wrap wrap-anywhere truncate">
343-
{address}
343+
{address && address.slice(0, 56) + "..."}
344344
</div>
345345
<div className="h-4 grow" />
346346
<div className="flex flex-wrap items-center gap-2">

0 commit comments

Comments
 (0)