mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-10-04 16:37:00 +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 }) => {
|
||||
try {
|
||||
const { payment, request } = parseZapNote(event);
|
||||
|
||||
if (!payment.amount) return null;
|
||||
@@ -64,6 +65,9 @@ const ZapEvent = React.memo(({ event }: { event: NostrEvent }) => {
|
||||
</Text>
|
||||
</Flex>
|
||||
);
|
||||
} catch (e) {
|
||||
return <Text>Invalid Zap</Text>;
|
||||
}
|
||||
});
|
||||
|
||||
function sortEvents(a: NostrEvent, b: NostrEvent) {
|
||||
|
Reference in New Issue
Block a user