Update nip05 buy button to only show if nip05 field is empty
This commit is contained in:
parent
9c5e386444
commit
b800d9532c
@ -147,10 +147,12 @@ export default function ProfileSettings(props: ProfileSettingsProps) {
|
||||
</div>
|
||||
<div>
|
||||
<input type="text" className="mr10" value={nip05} onChange={e => setNip05(e.target.value)} />
|
||||
<button type="button" onClick={() => navigate("/verification")}>
|
||||
<FontAwesomeIcon icon={faShop} />
|
||||
<FormattedMessage {...messages.Buy} />
|
||||
</button>
|
||||
{(nip05 === "") && (
|
||||
<button type="button" onClick={() => navigate("/verification")}>
|
||||
<FontAwesomeIcon icon={faShop} />
|
||||
<FormattedMessage {...messages.Buy} />
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
<div className="form-group card">
|
||||
|
Loading…
x
Reference in New Issue
Block a user