fix is_public_node

This commit is contained in:
PhilReact 2025-05-01 00:50:04 +03:00
parent 65203d4921
commit 4bb3ca2685
2 changed files with 3 additions and 1 deletions

View File

@ -81,7 +81,7 @@ function App() {
const [isAuthenticated, setIsAuthenticated] = useState<boolean>(false); const [isAuthenticated, setIsAuthenticated] = useState<boolean>(false);
const [OAuthLoading, setOAuthLoading] = useState<boolean>(false); const [OAuthLoading, setOAuthLoading] = useState<boolean>(false);
const db = useIndexedDBContext(); const db = useIndexedDBContext();
const [isUsingGateway, setIsUsingGateway] = useState(true) const [isUsingGateway, setIsUsingGateway] = useState(null)
const [isSocketUp, setIsSocketUp] = useState<boolean>(false); const [isSocketUp, setIsSocketUp] = useState<boolean>(false);
// const [onGoingTrades, setOngoingTrades] = useState([]) // const [onGoingTrades, setOngoingTrades] = useState([])

View File

@ -468,6 +468,7 @@ export const TradeOffers: React.FC<any> = ({ foreignCoinBalance }: any) => {
}; };
useEffect(() => { useEffect(() => {
if(isUsingGateway === null) return
blockedTradesList.current = JSON.parse( blockedTradesList.current = JSON.parse(
localStorage.getItem("failedTrades") || "[]" localStorage.getItem("failedTrades") || "[]"
); );
@ -489,6 +490,7 @@ export const TradeOffers: React.FC<any> = ({ foreignCoinBalance }: any) => {
}, [isUsingGateway]); }, [isUsingGateway]);
useEffect(() => { useEffect(() => {
if(isUsingGateway === null) return
if (selectedCoin === null) return; if (selectedCoin === null) return;
restartTradeOffers(); restartTradeOffers();
setTimeout(() => { setTimeout(() => {