Render sponsorship token
This commit is contained in:
parent
ca59cd4b7a
commit
ed4fcdffcc
2 changed files with 2 additions and 2 deletions
|
|
@ -254,7 +254,7 @@ func (c *CmdConfigure) askSponsortoken(required bool, feature bool) error {
|
|||
required: true})
|
||||
|
||||
err := sponsor.ConfigureSponsorship(sponsortoken)
|
||||
if err != nil {
|
||||
if err == nil {
|
||||
c.configuration.config.SponsorToken = sponsortoken
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ type DeviceCategoryData struct {
|
|||
defaultName string
|
||||
}
|
||||
|
||||
var DeviceCategories map[DeviceCategory]DeviceCategoryData = map[DeviceCategory]DeviceCategoryData{
|
||||
var DeviceCategories = map[DeviceCategory]DeviceCategoryData{
|
||||
DeviceCategoryCharger: {
|
||||
class: DeviceClassCharger,
|
||||
defaultName: defaultNameCharger},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue