mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-18 14:54:26 +01:00
hide preimage when not paid
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user