Fix content rendering in combined details, imporve decryption process in details page reduced extra api calls

This commit is contained in:
austinkelsay 2024-11-21 17:56:24 -06:00
parent 2ba4615885
commit 93bd37161e
No known key found for this signature in database
GPG Key ID: 44CB4EC6D9F2FA02
3 changed files with 6 additions and 2 deletions

View File

@ -117,6 +117,10 @@ const CombinedDetails = ({ processedEvent, topics, title, summary, image, price,
);
}
if (processedEvent?.content) {
return <MDDisplay className='p-2 rounded-lg w-full' source={processedEvent.content} />;
}
return null;
};

View File

@ -11,7 +11,7 @@ const appConfig = {
"wss://purplerelay.com/",
"wss://relay.devs.tools/"
],
authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345", "468f729dd409053dac5e7470622c3996aad88db6ed1de9165cb1921b5ab4fd5e"],
authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345"],
customLightningAddresses: [
{
// todo remove need for lowercase

View File

@ -139,7 +139,7 @@ const Details = () => {
};
fetchAndProcessEvent();
}, [router.isReady, router.query, ndk, session, decryptContent, fetchAuthor, showToast]);
}, [router.isReady, router.query, ndk, session]);
const handlePaymentSuccess = (response) => {
if (response && response?.preimage) {