Skip to content

Commit

Permalink
core: Populate the core.Exchange map fields even when not connected (#…
Browse files Browse the repository at this point in the history
…3103)

Returning null here was causing UI errors. It's better to return an
empty map then null.
  • Loading branch information
martonp authored Dec 2, 2024
1 parent 98d4def commit 8d8172f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit 8d8172f

Please sign in to comment.