Small adjustements

This commit is contained in:
nicolas.dorier 2023-05-31 11:27:03 +09:00
parent 0a0cf97c55
commit 24f7e51e3a
No known key found for this signature in database
GPG Key ID: 6618763EF09186FE
2 changed files with 7 additions and 6 deletions

View File

@ -356,7 +356,7 @@ namespace BTCPayServer.Plugins.PointOfSale.Controllers
meta.Merge(formResponseJObject);
entity.Metadata = InvoiceMetadata.FromJObject(meta);
});
if (price is 0 && storeBlob.ReceiptOptions.Enabled is true)
if (price is 0 && storeBlob.ReceiptOptions?.Enabled is true)
{
return RedirectToAction(nameof(UIInvoiceController.InvoiceReceipt), "UIInvoice", new { invoiceId = invoice.Data.Id });
}

View File

@ -26,7 +26,8 @@
<script type="text/javascript">
setTimeout(() => { window.location.reload(); }, 10000);
</script>
}else if (isFreeInvoice)
}
else if (isFreeInvoice)
{
<script type="text/javascript">
setTimeout(() => { window.location.reload(); }, 2000);