diff --git a/src/components/EPUBViewer.tsx b/src/components/EPUBViewer.tsx
index 63568be..0dcc75e 100644
--- a/src/components/EPUBViewer.tsx
+++ b/src/components/EPUBViewer.tsx
@@ -22,6 +22,7 @@ export function EPUBViewer({ className = '' }: EPUBViewerProps) {
const {
currDocData,
currDocName,
+ currDocText, // added for Fork1
locationRef,
handleLocationChanged,
bookRef,
@@ -59,7 +60,7 @@ export function EPUBViewer({ className = '' }: EPUBViewerProps) {
registerLocationChangeHandler(handleLocationChanged);
}, [registerLocationChangeHandler, handleLocationChanged]);
- if (!currDocData) {
+ if (!currDocData) {
return