From da43923d2f74be064b4ff4dec1d14b1b1ef9bf51 Mon Sep 17 00:00:00 2001 From: benarc Date: Tue, 16 Nov 2021 03:18:06 +0000 Subject: [PATCH] fixed bug --- lnbits/extensions/satsdice/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lnbits/extensions/satsdice/views.py b/lnbits/extensions/satsdice/views.py index d7915f760..2ebd292e1 100644 --- a/lnbits/extensions/satsdice/views.py +++ b/lnbits/extensions/satsdice/views.py @@ -73,13 +73,13 @@ async def displaywin( raise HTTPException( status_code=HTTPStatus.NOT_FOUND, detail="satsdice link does not exist." ) - if satsdicelink.lost: + + withdrawLink = await get_satsdice_withdraw(payment_hash) + if withdrawLink.lost: return satsdice_renderer().TemplateResponse( "satsdice/error.html", {"request": request, "link": satsdicelink.id, "paid": False, "lost": True}, ) - - withdrawLink = await get_satsdice_withdraw(payment_hash) if withdrawLink: return satsdice_renderer().TemplateResponse( "satsdice/displaywin.html",