Skip to content

Commit

Permalink
Merge pull request #1870 from okta/OKTA-682420-get-default-brand
Browse files Browse the repository at this point in the history
fix nil pointer from default brand
  • Loading branch information
duytiennguyen-okta authored Jan 10, 2024
2 parents f4fa3b3 + 4e7e5bb commit bf08073
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion okta/brand.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func getDefaultBrand(ctx context.Context, m interface{}) (*okta.BrandWithEmbedde
}

for _, brand := range brands {
if *brand.IsDefault {
if brand.GetIsDefault() {
return &brand, nil
}
}
Expand Down

0 comments on commit bf08073

Please sign in to comment.