Skip to content

Commit 8d8172f

Browse files
authored
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.
1 parent 98d4def commit 8d8172f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/core/core.go

+3
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ func (c *Core) exchangeInfo(dc *dexConnection) *Exchange {
479479
AcctID: acctID,
480480
ConnectionStatus: dc.status(),
481481
Disabled: dc.acct.isDisabled(),
482+
Markets: make(map[string]*Market),
483+
Assets: make(map[uint32]*dex.Asset),
484+
BondAssets: make(map[string]*BondAsset),
482485
}
483486
}
484487

0 commit comments

Comments
 (0)