hide preimage when not paid

This commit is contained in:
Paul Miller
2023-11-08 17:03:26 -06:00
parent 3a11558fab
commit 56a8c06b62

View File

@@ -238,13 +238,15 @@ function LightningDetails(props: { info: MutinyInvoice; tags?: TagItem }) {
>
<MiniStringShower text={props.info.payment_hash ?? ""} />
</KeyValue>
<KeyValue
key={i18n.t(
"activity.transaction_details.payment_preimage"
)}
>
<MiniStringShower text={props.info.preimage ?? ""} />
</KeyValue>
<Show when={props.info.paid}>
<KeyValue
key={i18n.t(
"activity.transaction_details.payment_preimage"
)}
>
<MiniStringShower text={props.info.preimage ?? ""} />
</KeyValue>
</Show>
</ul>
</VStack>
);