Commit 14f11976 authored by Andrei Mihu's avatar Andrei Mihu
Browse files

Correctly update wallet on console user details account page.

parent 7eb209e6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ The format is based on [keep a changelog](http://keepachangelog.com) and this pr
- Correctly display friend names on console user details page.
- Correctly display group names on console user details page.
- Do not attempt to navigate to groups from console user details page.
- Correctly update wallet on console user details page.

## [2.5.0] - 2019-04-25
### Added
+1 −1
Original line number Diff line number Diff line
@@ -414,7 +414,7 @@ func (s *ConsoleServer) UpdateAccount(ctx context.Context, in *console.UpdateAcc

	if v := in.Wallet; v != nil && v.Value != "" {
		var walletMap map[string]interface{}
		if err := json.Unmarshal([]byte(v.Value), walletMap); err != nil {
		if err := json.Unmarshal([]byte(v.Value), &walletMap); err != nil {
			return nil, status.Error(codes.InvalidArgument, "Wallet must be a valid JSON object.")
		}
		if err := checkWalletFormat(walletMap, ""); err != nil {