mirror of
https://github.com/Qortal/q-trade.git
synced 2025-06-15 02:41:21 +00:00
fix is_public_node
This commit is contained in:
parent
65203d4921
commit
4bb3ca2685
@ -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([])
|
||||||
|
@ -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(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user