don't show pubkey if autoupdate is enabled

This commit is contained in:
Alejandro Gomez
2023-02-09 23:27:49 +01:00
parent 51f8f95d3e
commit 11ce907c66

View File

@ -233,13 +233,15 @@ export default function Nip5Service(props: Nip05ServiceProps) {
<br /> <br />
<small>{availabilityResponse.quote?.data.type}</small> <small>{availabilityResponse.quote?.data.type}</small>
</div> </div>
<input {!autoUpdate && (
type="text" <input
className="f-grow mr10" type="text"
placeholder="pubkey" className="f-grow mr10"
value={hexToBech32("npub", pubkey)} placeholder="pubkey"
disabled value={hexToBech32("npub", pubkey)}
/> disabled
/>
)}
<AsyncButton onClick={() => startBuy(handle, domain)}> <AsyncButton onClick={() => startBuy(handle, domain)}>
<FormattedMessage {...messages.BuyNow} /> <FormattedMessage {...messages.BuyNow} />
</AsyncButton> </AsyncButton>