Fixed bug

This commit is contained in:
benarc 2021-11-16 03:25:13 +00:00
parent da43923d2f
commit a58924184e

View file

@ -74,8 +74,8 @@ async def displaywin(
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
)
withdrawLink = await get_satsdice_withdraw(payment_hash)
if withdrawLink.lost:
payment = await get_satsdice_payment(payment_hash)
if payment.lost:
return satsdice_renderer().TemplateResponse(
"satsdice/error.html",
{"request": request, "link": satsdicelink.id, "paid": False, "lost": True},