mirror of
https://github.com/lnbits/lnbits.git
synced 2025-07-01 02:51:29 +02:00
Fixed bug
This commit is contained in:
@ -74,8 +74,8 @@ async def displaywin(
|
|||||||
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
|
status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist."
|
||||||
)
|
)
|
||||||
|
|
||||||
withdrawLink = await get_satsdice_withdraw(payment_hash)
|
payment = await get_satsdice_payment(payment_hash)
|
||||||
if withdrawLink.lost:
|
if payment.lost:
|
||||||
return satsdice_renderer().TemplateResponse(
|
return satsdice_renderer().TemplateResponse(
|
||||||
"satsdice/error.html",
|
"satsdice/error.html",
|
||||||
{"request": request, "link": satsdicelink.id, "paid": False, "lost": True},
|
{"request": request, "link": satsdicelink.id, "paid": False, "lost": True},
|
||||||
|
Reference in New Issue
Block a user