fix(GODT-2989): allow to send bug report when no account connected.

This commit is contained in:
Romain Le Jeune 2023-10-02 13:34:40 +00:00
parent 52addb2582
commit 48d1ca1e72
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ const (
)
func (bridge *Bridge) ReportBug(ctx context.Context, osType, osVersion, title, description, username, email, client string, attachLogs bool) error {
var account string
var account = username
if info, err := bridge.QueryUserInfo(username); err == nil {
account = info.Username