|
|
@ -119,6 +119,9 @@ class NameRegistration extends LitElement { |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<span ?hidden=${this.message === ''} style="${this.error ? 'color:red;' : ''}"> |
|
|
|
<span ?hidden=${this.message === ''} style="${this.error ? 'color:red;' : ''}"> |
|
|
|
${this.message} |
|
|
|
${this.message} |
|
|
|
|
|
|
|
</span><br> |
|
|
|
|
|
|
|
<span> |
|
|
|
|
|
|
|
<b>The current name registration fee is ${this.fee} QORT.</b> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
@ -222,7 +225,7 @@ class NameRegistration extends LitElement { |
|
|
|
return Promise.reject(response); |
|
|
|
return Promise.reject(response); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.then((json) => { |
|
|
|
.then((json) => { |
|
|
|
this.fee = (Number(json) / 1e8).toFixed(8); |
|
|
|
this.fee = (Number(json) / 1e8).toFixed(2); |
|
|
|
}) |
|
|
|
}) |
|
|
|
.catch((response) => { |
|
|
|
.catch((response) => { |
|
|
|
console.log(response.status, response.statusText, 'Need Core Update'); |
|
|
|
console.log(response.status, response.statusText, 'Need Core Update'); |
|
|
|