From 8d8172fb99b37eaae7f1aa9457559a6739af7835 Mon Sep 17 00:00:00 2001 From: Marton Date: Mon, 2 Dec 2024 19:51:43 +0100 Subject: [PATCH] core: Populate the core.Exchange map fields even when not connected (#3103) Returning null here was causing UI errors. It's better to return an empty map then null. --- client/core/core.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/core/core.go b/client/core/core.go index 52134fa7c7..f3572b99d2 100644 --- a/client/core/core.go +++ b/client/core/core.go @@ -479,6 +479,9 @@ func (c *Core) exchangeInfo(dc *dexConnection) *Exchange { AcctID: acctID, ConnectionStatus: dc.status(), Disabled: dc.acct.isDisabled(), + Markets: make(map[string]*Market), + Assets: make(map[uint32]*dex.Asset), + BondAssets: make(map[string]*BondAsset), } }