update refresh button
refresh button also refreshed account details
This commit is contained in:
parent
9443ac5d51
commit
8d4a2e79b8
@ -209,11 +209,13 @@
|
||||
}).catch(error => console.error(error))
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
function refresh(init = false) {
|
||||
console.info("refresh");
|
||||
list_buy();
|
||||
list_sell();
|
||||
list_txns();
|
||||
if (init || document.getElementById('user-container').style.display === "block")
|
||||
account();
|
||||
}
|
||||
|
||||
function account() {
|
||||
@ -342,10 +344,7 @@
|
||||
.catch(error => console.error(o, error)))
|
||||
};
|
||||
|
||||
(function init() {
|
||||
account();
|
||||
refresh();
|
||||
})();
|
||||
refresh(true);
|
||||
</script>
|
||||
|
||||
</body>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user