Skip to content

Commit 4ed00f5

Browse files
committed
Fix an issue with displaying transfer memos
1 parent 56a6e2d commit 4ed00f5

2 files changed

Lines changed: 15 additions & 12 deletions

File tree

js/popup/tokens.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -113,17 +113,20 @@ function showTokenBalances(account) {
113113
getTokenHistory(active_account.name,20,0,symbol).then(function(history){
114114
for (elt of history){
115115
const date = new Date(elt.timestamp);
116-
const timestamp = (date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear();
117-
console.log(elt.memo)
118-
$("#history_tokens_rows").append(
119-
"<div class='history_tokens_row "+(elt.memo!=null?"history_row_memo":"")+"'>\
120-
<span class='history_date ' title='"+elt.timestamp+"'>" + timestamp + "</span>\
121-
<span class='history_val'>" + (elt.from == active_account.name ? "-" : "+") + " " + elt.quantity + "</span>\
122-
<span class='history_name'>" + (elt.from == active_account.name ? "TO: @" + elt.to : "FROM: @" + elt.from) +"</span>\
123-
<span class='history_cur'>" + elt.symbol + "</span>\
124-
<div class='history_memo'>" + elt.memo + "</div>\
125-
</div>"
126-
);
116+
const timestamp = (date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear();
117+
118+
var history_row = $("<div class='history_tokens_row "+(elt.memo!=null?"history_row_memo":"")+"'>\
119+
<span class='history_date ' title='"+elt.timestamp+"'>" + timestamp + "</span>\
120+
<span class='history_val'>" + (elt.from == active_account.name ? "-" : "+") + " " + elt.quantity + "</span>\
121+
<span class='history_name'>" + (elt.from == active_account.name ? "TO: @" + elt.to : "FROM: @" + elt.from) +"</span>\
122+
<span class='history_cur'>" + elt.symbol + "</span>\
123+
</div>");
124+
125+
var memo_element = $("<div class='history_memo'></div>");
126+
memo_element.text(elt.memo);
127+
history_row.append(memo_element)
128+
129+
$("#history_tokens_rows").append(history_row);
127130
}
128131
$("#loading_history_token").hide();
129132
$(".history_tokens_row").unbind("click").click(function(){

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Steem Keychain",
3-
"version": "1.5.3",
3+
"version": "1.5.5",
44
"description": "Secure Steem Wallet Extension.",
55
"permissions": ["activeTab", "declarativeContent", "storage", "tabs", "https://*/*", "notifications", "idle"],
66
"browser_action": {

0 commit comments

Comments
 (0)