Use Tickets: better error handling

This commit is contained in:
mDuo13
2021-02-11 17:06:04 -08:00
parent 6025be47ee
commit 0e33d93c0e
3 changed files with 16 additions and 2 deletions

View File

@@ -30,6 +30,14 @@ $("#connect-button").click(() => {
// 3. Check Sequence Number
$("#check-sequence").click( async function() {
const address = $("#use-address").text()
if (!address) {
$("#check-sequence-output").html(
`<p class="devportal-callout warning"><strong>Error:</strong>
No address. Make sure you <a href="#1-get-credentials">Get Credentials</a> first.</p>`)
return;
}
// Wipe previous output
$("#check-sequence-output").html("")
const account_info = await api.request("account_info", {"account": address})