Skip to content

Commit 359605d

Browse files
committed
Loan due date using current block height
1 parent 9a89fae commit 359605d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extension/src/components/OpenLoans.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { LoanDetails } from "../models";
2020
import Btc from "./bitcoin.svg";
2121
import Usdt from "./tether.svg";
2222

23-
const error = Debug("openloans:error");
23+
const debug = Debug("openloans:error");
2424

2525
interface OpenLoansProps {
2626
openLoans: LoanDetails[] | undefined;
@@ -53,7 +53,7 @@ function OpenLoan({ loanDetails, onRepayed, index }: OpenLoanProps) {
5353
await repayLoan(loanDetails.txid);
5454
onRepayed();
5555
},
56-
onReject: (e) => error("Failed to repay loan %s: %s", loanDetails.txid, e),
56+
onReject: (e) => debug("Failed to repay loan %s: %s", loanDetails.txid, e),
5757
});
5858

5959
const blockHeightHook = useAsync({

0 commit comments

Comments
 (0)