fix url empty

This commit is contained in:
Cayo Puigdefabregas 2024-03-27 17:33:39 +01:00
parent 43aad9e187
commit 1746d44dec
1 changed files with 2 additions and 1 deletions

View File

@ -236,6 +236,7 @@ class AllowCodeView(View):
)
if self.request.session.get("response_uri"):
url = self.send_api()
if url:
return redirect(url)
promotion = self.authorization.promotions.first()