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 ?? ""} /> <MiniStringShower text={props.info.payment_hash ?? ""} />
</KeyValue> </KeyValue>
<KeyValue <Show when={props.info.paid}>
key={i18n.t( <KeyValue
"activity.transaction_details.payment_preimage" key={i18n.t(
)} "activity.transaction_details.payment_preimage"
> )}
<MiniStringShower text={props.info.preimage ?? ""} /> >
</KeyValue> <MiniStringShower text={props.info.preimage ?? ""} />
</KeyValue>
</Show>
</ul> </ul>
</VStack> </VStack>
); );