Skip to content

Commit

Permalink
Merge pull request #1428 from yogeshojha/quickfix/release_2.2.0
Browse files Browse the repository at this point in the history
fix onboarding error when hackerone keys are not set
  • Loading branch information
yogeshojha authored Sep 7, 2024
2 parents a4342ff + 0ee9aae commit 08a9af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/dashboard/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ def onboarding(request):
context['openai_key'] = OpenAiAPIKey.objects.first()
context['netlas_key'] = NetlasAPIKey.objects.first()
context['chaos_key'] = ChaosAPIKey.objects.first()
context['hackerone_key'] = HackerOneAPIKey.objects.first().key
context['hackerone_username'] = HackerOneAPIKey.objects.first().username
context['hackerone_key'] = HackerOneAPIKey.objects.first().key if HackerOneAPIKey.objects.first() else ''
context['hackerone_username'] = HackerOneAPIKey.objects.first().username if HackerOneAPIKey.objects.first() else ''

context['user_preferences'], _ = UserPreferences.objects.get_or_create(
user=request.user
Expand Down

0 comments on commit 08a9af2

Please sign in to comment.