diff --git a/CHANGELOG.md b/CHANGELOG.md index e6a2999a7558da320d9f2f29b14bed1d37dffe45..f97c5adb6e3ab4ef07faa1c9ffb792ee49eb06bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/server/console_account.go b/server/console_account.go index ed33240851cffb4b0cbb53626116c09c6c52ca35..6e70ea52015c43535bef9e0108baaeb103cb5c09 100644 --- a/server/console_account.go +++ b/server/console_account.go @@ -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 {