mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Small fixes
This commit is contained in:
parent
476fcf1d6f
commit
cf2422f924
@ -269,11 +269,9 @@ class Logics():
|
||||
@classmethod
|
||||
def gen_escrow_hodl_invoice(cls, order, user):
|
||||
# Do not generate and cancel if an invoice is there and older than X minutes and unpaid still
|
||||
print('AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA')
|
||||
if order.trade_escrow:
|
||||
# Check if status is INVGEN and still not expired
|
||||
if order.trade_escrow.status == LNPayment.Status.INVGEN:
|
||||
print('CCCCCCCCCCCCCCCCCCC')
|
||||
if order.trade_escrow.created_at > (timezone.now()+timedelta(minutes=EXP_TRADE_ESCR_INVOICE)): # Expired
|
||||
cls.cancel_order(order, user, 4) # State 4, cancel order before trade escrow locked
|
||||
return False, {'bad_request':'Invoice expired. You did not lock the trade escrow in time.'}
|
||||
|
@ -151,7 +151,7 @@ export default class OrderPage extends Component {
|
||||
<Grid container spacing={1}>
|
||||
<Grid item xs={12} align="center">
|
||||
<Typography component="h5" variant="h5">
|
||||
BTC {this.state.type ? " Sell " : " Buy "} Order
|
||||
{this.state.type ? "Sell " : "Buy "} Order Details
|
||||
</Typography>
|
||||
<Paper elevation={12} style={{ padding: 8,}}>
|
||||
<List dense="true">
|
||||
|
@ -143,7 +143,7 @@ export default class UserGenPage extends Component {
|
||||
</Grid>
|
||||
<Grid item xs={12} align="center">
|
||||
<Typography component="h5" variant="h5">
|
||||
Easy and Private Lightning peer-to-peer Exchange
|
||||
Simple and Private Lightning peer-to-peer Exchange
|
||||
</Typography>
|
||||
</Grid>
|
||||
</Grid>
|
||||
|
Loading…
Reference in New Issue
Block a user