mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-29 04:52:59 +02:00
more patches
This commit is contained in:
@@ -47,6 +47,7 @@ const ReactionEvent = React.memo(({ event }: { event: NostrEvent }) => (
|
|||||||
));
|
));
|
||||||
|
|
||||||
const ZapEvent = React.memo(({ event }: { event: NostrEvent }) => {
|
const ZapEvent = React.memo(({ event }: { event: NostrEvent }) => {
|
||||||
|
try {
|
||||||
const { payment, request } = parseZapNote(event);
|
const { payment, request } = parseZapNote(event);
|
||||||
|
|
||||||
if (!payment.amount) return null;
|
if (!payment.amount) return null;
|
||||||
@@ -64,6 +65,9 @@ const ZapEvent = React.memo(({ event }: { event: NostrEvent }) => {
|
|||||||
</Text>
|
</Text>
|
||||||
</Flex>
|
</Flex>
|
||||||
);
|
);
|
||||||
|
} catch (e) {
|
||||||
|
return <Text>Invalid Zap</Text>;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function sortEvents(a: NostrEvent, b: NostrEvent) {
|
function sortEvents(a: NostrEvent, b: NostrEvent) {
|
||||||
|
Reference in New Issue
Block a user