mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-03 07:42:03 +00:00
Linted
This commit is contained in:
parent
ad218d8803
commit
da0a877e9b
@ -42,7 +42,7 @@ export function CourseTemplate({ course, showMetaTags = true }) {
|
||||
|
||||
useEffect(() => {
|
||||
if (session?.user?.privkey) {
|
||||
const privkeyBuffer = Buffer.from(session.user.privkey, "hex");
|
||||
const privkeyBuffer = Buffer.from(session.user.privkey, 'hex');
|
||||
setNsec(nip19.nsecEncode(privkeyBuffer));
|
||||
} else if (session?.user?.pubkey) {
|
||||
setNpub(nip19.npubEncode(session.user.pubkey));
|
||||
|
@ -81,12 +81,10 @@ export default async function handler(req, res) {
|
||||
},
|
||||
}
|
||||
);
|
||||
res
|
||||
.status(200)
|
||||
.json({
|
||||
pr: response.data.invoice,
|
||||
verify: `${BACKEND_URL}/api/lightning-address/verify/${slug}/${response.data.payment_hash}`,
|
||||
});
|
||||
res.status(200).json({
|
||||
pr: response.data.invoice,
|
||||
verify: `${BACKEND_URL}/api/lightning-address/verify/${slug}/${response.data.payment_hash}`,
|
||||
});
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
res.status(500).json({ error: 'Failed to generate invoice' });
|
||||
|
Loading…
x
Reference in New Issue
Block a user