Skip to content

Commit

Permalink
Merge pull request #351 from cstenglein/ui-fixes
Browse files Browse the repository at this point in the history
UI fixes
  • Loading branch information
cstenglein authored Jun 11, 2022
2 parents 5bc3d9c + d929283 commit 6fe6ddc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/components/Home/ConnectionCard/ConnectionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ export const ConnectionCard: FC<Props> = ({
<ModalDialog close={closeModalHandler}>
<div className="my-5 flex flex-col items-center justify-center">
<QRCodeSVG value={nodeId} size={256} />
<p className="mt-10 mb-3 text-sm text-gray-500">{nodeId}</p>
<p className="mt-10 mb-3 text-sm text-gray-500 dark:text-white">
{nodeId}
</p>
</div>
</ModalDialog>,
MODAL_ROOT
Expand Down
2 changes: 1 addition & 1 deletion src/components/Home/WalletCard/WalletCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const WalletCard: FC<Props> = ({
unconfirmedSign = onChainUnconfirmed > 0 ? "+" : "";
}

if (lnBalance) {
if (lnBalance !== null) {
convertedLnBalance =
unit === Unit.BTC ? convertMSatToBtc(lnBalance) : lnBalance / 1000;
}
Expand Down
4 changes: 3 additions & 1 deletion src/pages/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
}`
);
}
Expand Down

0 comments on commit 6fe6ddc

Please sign in to comment.