mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-22 20:01:06 -05:00
fix(gui): Monero regex issue, context initialize issue (#437)
Co-authored-by: Maksim Kirillov <artist@eduroam-141-23-183-184.wlan.tu-berlin.de>
This commit is contained in:
parent
38f2ddec77
commit
cd4aa5201a
2 changed files with 5 additions and 4 deletions
|
|
@ -230,10 +230,11 @@ export async function initializeContext() {
|
|||
store.getState().settings.nodes[network][Blockchain.Monero][0] ?? null;
|
||||
|
||||
// Check the state of the Monero node
|
||||
const isMoneroNodeOnline = await getMoneroNodeStatus(moneroNodeUrl, network);
|
||||
|
||||
const moneroNodeConfig =
|
||||
useMoneroRpcPool || moneroNodeUrl == null || !isMoneroNodeOnline
|
||||
useMoneroRpcPool ||
|
||||
moneroNodeUrl == null ||
|
||||
!(await getMoneroNodeStatus(moneroNodeUrl, network))
|
||||
? { type: "Pool" as const }
|
||||
: {
|
||||
type: "SingleNode" as const,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue