forked from Kieran/snort
Remove logs
This commit is contained in:
parent
456bd1b2fb
commit
8c0b0ac986
@ -9,7 +9,7 @@ export default function Invoice(props) {
|
|||||||
const info = useMemo(() => {
|
const info = useMemo(() => {
|
||||||
try {
|
try {
|
||||||
let parsed = invoiceDecode(invoice);
|
let parsed = invoiceDecode(invoice);
|
||||||
console.debug("Parsed invoice: ", parsed);
|
|
||||||
let amount = parseInt(parsed.sections.find(a => a.name === "amount")?.value);
|
let amount = parseInt(parsed.sections.find(a => a.name === "amount")?.value);
|
||||||
let timestamp = parseInt(parsed.sections.find(a => a.name === "timestamp")?.value);
|
let timestamp = parseInt(parsed.sections.find(a => a.name === "timestamp")?.value);
|
||||||
let expire = parseInt(parsed.sections.find(a => a.name === "expiry")?.value);
|
let expire = parseInt(parsed.sections.find(a => a.name === "expiry")?.value);
|
||||||
@ -22,7 +22,6 @@ export default function Invoice(props) {
|
|||||||
if (ret.expire) {
|
if (ret.expire) {
|
||||||
ret.expired = ret.expire < (new Date().getTime() / 1000);
|
ret.expired = ret.expire < (new Date().getTime() / 1000);
|
||||||
}
|
}
|
||||||
console.log(ret);
|
|
||||||
return ret;
|
return ret;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user