Only call success_callback if it's not None

It could also be called as a fire-and-forget update thing.

Contributes to issue CURA-8539.
This commit is contained in:
Ghostkeeper 2021-11-22 16:20:37 +01:00
parent 595a6580f5
commit 1ee9f73075
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -153,6 +153,7 @@ class AuthorizationHelpers:
failed_callback()
return
if success_callback is not None:
success_callback(UserProfile(
user_id = profile_data["user_id"],
username = profile_data["username"],