diff --git a/client/ui/services/profileswitcher.go b/client/ui/services/profileswitcher.go index 855097749..1b3d2ba43 100644 --- a/client/ui/services/profileswitcher.go +++ b/client/ui/services/profileswitcher.go @@ -69,10 +69,7 @@ func (s *ProfileSwitcher) SwitchActive(ctx context.Context, p ProfileRef) error } if wasActive { - if err := s.connection.Up(ctx, UpParams{ - ProfileName: p.ProfileName, - Username: p.Username, - }); err != nil { + if err := s.connection.Up(ctx, UpParams(p)); err != nil { return fmt.Errorf("reconnect %q: %w", p.ProfileName, err) } }