mirror of
https://github.com/Qortal/q-trade.git
synced 2025-06-14 02:11: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 [OAuthLoading, setOAuthLoading] = useState<boolean>(false);
|
||||
const db = useIndexedDBContext();
|
||||
const [isUsingGateway, setIsUsingGateway] = useState(true)
|
||||
const [isUsingGateway, setIsUsingGateway] = useState(null)
|
||||
|
||||
const [isSocketUp, setIsSocketUp] = useState<boolean>(false);
|
||||
// const [onGoingTrades, setOngoingTrades] = useState([])
|
||||
|
@ -468,6 +468,7 @@ export const TradeOffers: React.FC<any> = ({ foreignCoinBalance }: any) => {
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
if(isUsingGateway === null) return
|
||||
blockedTradesList.current = JSON.parse(
|
||||
localStorage.getItem("failedTrades") || "[]"
|
||||
);
|
||||
@ -489,6 +490,7 @@ export const TradeOffers: React.FC<any> = ({ foreignCoinBalance }: any) => {
|
||||
}, [isUsingGateway]);
|
||||
|
||||
useEffect(() => {
|
||||
if(isUsingGateway === null) return
|
||||
if (selectedCoin === null) return;
|
||||
restartTradeOffers();
|
||||
setTimeout(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user