Skip to content

Commit

Permalink
Fix an issue with displaying transfer memos
Browse files Browse the repository at this point in the history
  • Loading branch information
MattyIce committed May 12, 2019
1 parent 56a6e2d commit 4ed00f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
25 changes: 14 additions & 11 deletions js/popup/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,20 @@ function showTokenBalances(account) {
getTokenHistory(active_account.name,20,0,symbol).then(function(history){
for (elt of history){
const date = new Date(elt.timestamp);
const timestamp = (date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear();
console.log(elt.memo)
$("#history_tokens_rows").append(
"<div class='history_tokens_row "+(elt.memo!=null?"history_row_memo":"")+"'>\
<span class='history_date ' title='"+elt.timestamp+"'>" + timestamp + "</span>\
<span class='history_val'>" + (elt.from == active_account.name ? "-" : "+") + " " + elt.quantity + "</span>\
<span class='history_name'>" + (elt.from == active_account.name ? "TO: @" + elt.to : "FROM: @" + elt.from) +"</span>\
<span class='history_cur'>" + elt.symbol + "</span>\
<div class='history_memo'>" + elt.memo + "</div>\
</div>"
);
const timestamp = (date.getMonth() + 1) + '/' + date.getDate() + '/' + date.getFullYear();

var history_row = $("<div class='history_tokens_row "+(elt.memo!=null?"history_row_memo":"")+"'>\
<span class='history_date ' title='"+elt.timestamp+"'>" + timestamp + "</span>\
<span class='history_val'>" + (elt.from == active_account.name ? "-" : "+") + " " + elt.quantity + "</span>\
<span class='history_name'>" + (elt.from == active_account.name ? "TO: @" + elt.to : "FROM: @" + elt.from) +"</span>\
<span class='history_cur'>" + elt.symbol + "</span>\
</div>");

var memo_element = $("<div class='history_memo'></div>");
memo_element.text(elt.memo);
history_row.append(memo_element)

$("#history_tokens_rows").append(history_row);
}
$("#loading_history_token").hide();
$(".history_tokens_row").unbind("click").click(function(){
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Steem Keychain",
"version": "1.5.3",
"version": "1.5.5",
"description": "Secure Steem Wallet Extension.",
"permissions": ["activeTab", "declarativeContent", "storage", "tabs", "https://*/*", "notifications", "idle"],
"browser_action": {
Expand Down

0 comments on commit 4ed00f5

Please sign in to comment.