From 32836e0ce0b05d61821fbb54a319efd721fc8020 Mon Sep 17 00:00:00 2001 From: Christoph Stenglein Date: Sat, 11 Jun 2022 14:17:25 +0200 Subject: [PATCH 1/2] small ui fixes --- src/components/Home/WalletCard/WalletCard.tsx | 2 +- src/pages/Home.tsx | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/Home/WalletCard/WalletCard.tsx b/src/components/Home/WalletCard/WalletCard.tsx index ff64d9a1..1893e9a3 100644 --- a/src/components/Home/WalletCard/WalletCard.tsx +++ b/src/components/Home/WalletCard/WalletCard.tsx @@ -47,7 +47,7 @@ export const WalletCard: FC = ({ unconfirmedSign = onChainUnconfirmed > 0 ? "+" : ""; } - if (lnBalance) { + if (lnBalance !== null) { convertedLnBalance = unit === Unit.BTC ? convertMSatToBtc(lnBalance) : lnBalance / 1000; } diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx index fcb02506..f8cacde6 100644 --- a/src/pages/Home.tsx +++ b/src/pages/Home.tsx @@ -60,7 +60,9 @@ const Home: FC = () => { } else { setTxError( `${t("login.error")}: ${ - err.response?.data?.detail?.[0]?.msg || err.response?.data?.detail + err.response?.data?.detail?.[0]?.msg || + err.response?.data?.detail || + err.message }` ); } From d9292831bba0a747c6163381ef88eeb91e1e2e08 Mon Sep 17 00:00:00 2001 From: Christoph Stenglein Date: Sat, 11 Jun 2022 14:29:00 +0200 Subject: [PATCH 2/2] fix nodeid text on dark mode --- src/components/Home/ConnectionCard/ConnectionCard.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Home/ConnectionCard/ConnectionCard.tsx b/src/components/Home/ConnectionCard/ConnectionCard.tsx index b4d5043f..730ad269 100644 --- a/src/components/Home/ConnectionCard/ConnectionCard.tsx +++ b/src/components/Home/ConnectionCard/ConnectionCard.tsx @@ -59,7 +59,9 @@ export const ConnectionCard: FC = ({
-

{nodeId}

+

+ {nodeId} +

, MODAL_ROOT