guard against invalid signature.

This commit is contained in:
fiatjaf 2022-02-12 20:24:11 -03:00
parent 1d26118430
commit 143c7fe000

View File

@ -55,7 +55,9 @@ export default function EventSigning({value}) {
{getEventHash(evt)}
</Item>
{evt.sig ? (
<Item label="signature valid">{isValidSignature.toString()}</Item>
<Item label="signature valid">
{isValidSignature?.toString() || ''}
</Item>
) : (
<>
<Item