Add try/catch and replace screenshots

This commit is contained in:
Dennis Dawson
2025-02-26 10:30:02 -08:00
parent 6d26e509bc
commit e712f6c9a7
7 changed files with 5 additions and 0 deletions

View File

@@ -104,9 +104,12 @@ async function getAccountInfo() {
results = JSON.stringify(my_acct_info, null, 2)
resultField.value += results
var parsedResults = JSON.parse(results)
try {
document.getElementById("tickSizeField").value = parsedResults.result.account_data.TickSize
document.getElementById("transferRateField").value = parsedResults.result.account_data.TransferRate
document.getElementById("domainField").value = xrpl.convertHexToString(parsedResults.result.account_data.Domain)
} catch (error ) {
}
document.getElementById("defaultRipple").checked = parsedResults.result.account_flags.defaultRipple
document.getElementById("allowTrustLineClawback").checked = parsedResults.result.account_flags.allowTrustLineClawback
document.getElementById("depositAuth").checked = parsedResults.result.account_flags.depositAuth

View File

@@ -201,9 +201,11 @@ async function getAccountInfo() {
results = JSON.stringify(my_acct_info, null, 2)
resultField.value += results
var parsedResults = JSON.parse(results)
try {
document.getElementById("tickSizeField").value = parsedResults.result.account_data.TickSize
document.getElementById("transferRateField").value = parsedResults.result.account_data.TransferRate
document.getElementById("domainField").value = xrpl.convertHexToString(parsedResults.result.account_data.Domain)
} catch (error) { }
document.getElementById("defaultRipple").checked = parsedResults.result.account_flags.defaultRipple
document.getElementById("allowTrustLineClawback").checked = parsedResults.result.account_flags.allowTrustLineClawback
document.getElementById("depositAuth").checked = parsedResults.result.account_flags.depositAuth

Binary file not shown.

Before

Width:  |  Height:  |  Size: 330 KiB

After

Width:  |  Height:  |  Size: 327 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 329 KiB

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 374 KiB

After

Width:  |  Height:  |  Size: 465 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 456 KiB

After

Width:  |  Height:  |  Size: 323 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 486 KiB

After

Width:  |  Height:  |  Size: 469 KiB