From a9ba2cee72ac5389cff644b74790cd9ddfe75452 Mon Sep 17 00:00:00 2001 From: an-lee Date: Tue, 19 Nov 2024 11:13:08 +0800 Subject: [PATCH] fix UI --- .../renderer/components/documents/document-config-button.tsx | 2 +- .../renderer/components/documents/document-epub-renderer.tsx | 2 +- enjoy/src/renderer/components/layouts/sidebar.tsx | 2 +- enjoy/src/renderer/pages/document.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/enjoy/src/renderer/components/documents/document-config-button.tsx b/enjoy/src/renderer/components/documents/document-config-button.tsx index 5ed1723aa..a4bc7ac44 100644 --- a/enjoy/src/renderer/components/documents/document-config-button.tsx +++ b/enjoy/src/renderer/components/documents/document-config-button.tsx @@ -20,7 +20,7 @@ export const DocumentConfigButton = (props: { document: DocumentEType }) => { diff --git a/enjoy/src/renderer/components/documents/document-epub-renderer.tsx b/enjoy/src/renderer/components/documents/document-epub-renderer.tsx index 296fa0b51..99ef4a221 100644 --- a/enjoy/src/renderer/components/documents/document-epub-renderer.tsx +++ b/enjoy/src/renderer/components/documents/document-epub-renderer.tsx @@ -145,7 +145,7 @@ export const DocumentEpubRenderer = () => { { onSelect={() => setDisplayDepositDialog(true)} className="cursor-pointer" > - ${user.balance} + ${user.balance || 0.0} diff --git a/enjoy/src/renderer/pages/document.tsx b/enjoy/src/renderer/pages/document.tsx index bd4646fa8..e8b1b7c52 100644 --- a/enjoy/src/renderer/pages/document.tsx +++ b/enjoy/src/renderer/pages/document.tsx @@ -58,7 +58,7 @@ const DocumentComponent = () => { - +