diff --git a/src/windows/Settings/LndLog.tsx b/src/windows/Settings/LndLog.tsx index 8f667158..e9349bf1 100644 --- a/src/windows/Settings/LndLog.tsx +++ b/src/windows/Settings/LndLog.tsx @@ -9,7 +9,6 @@ import Container from "../../components/Container"; import { NavigationButton } from "../../components/NavigationButton"; import { toast } from "../../utils"; import LogBox from "../../components/LogBox"; -import useForceUpdate from "../../hooks/useForceUpdate"; import { useTranslation } from "react-i18next"; import { namespaces } from "../../i18n/i18n.constants"; @@ -21,9 +20,6 @@ export default function LndLog({ navigation }: ILndLogProps) { const t = useTranslation(namespaces.settings.lndLog).t; const [logs, setLogs] = useState(""); - let log = useRef(""); - const forceUpdate = useForceUpdate(); - const fetchLogs = async () => { try { const tailLog = await NativeModules.LndMobileTools.tailLog(100); diff --git a/src/windows/SyncInfo.tsx b/src/windows/SyncInfo.tsx index a348de4f..26fd2c87 100644 --- a/src/windows/SyncInfo.tsx +++ b/src/windows/SyncInfo.tsx @@ -49,15 +49,6 @@ export default function SyncInfo({}: ISyncInfoProps) { let bestBlockheight = useStoreState((store) => store.lightning.bestBlockheight); const [showLndLog, setShowLndLog] = useState(false); const [logs, setLogs] = useState(""); - const listener = useRef(); - - useEffect(() => { - return () => { - if (listener.current) { - listener.current?.remove(); - } - }; - }, []); const fetchLogs = async () => { try {