Skip to content

Commit 42aa080

Browse files
committed
sdk 0.8.1
1 parent b1cc09a commit 42aa080

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zabo-nodejs-quickstart-app",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"private": true,
55
"scripts": {
66
"start": "node ./bin/www"
@@ -14,6 +14,6 @@
1414
"morgan": "~1.9.1",
1515
"open": "^7.0.0",
1616
"pug": "^2.0.4",
17-
"zabo-sdk-js": "^0.8.0"
17+
"zabo-sdk-js": "^0.8.1"
1818
}
1919
}

public/scripts/script.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,14 @@
136136
row.appendChild(amount)
137137

138138
let otherParties = document.createElement('td')
139-
for (let j = 0; j < transactions[i].other_parties.length; j++) {
140-
let addressAnchor = document.createElement('a')
141-
addressAnchor.href = Utils.getExplorerUrl(transactions[i].currency, 'address/' + transactions[i].other_parties[j])
142-
addressAnchor.target = '_blank'
143-
addressAnchor.innerText = (transactions[i].other_parties[j] || '').substr(0, 5) + '...'
144-
otherParties.appendChild(addressAnchor)
139+
if (transactions[i].other_parties) {
140+
for (let j = 0; j < transactions[i].other_parties.length; j++) {
141+
let addressAnchor = document.createElement('a')
142+
addressAnchor.href = Utils.getExplorerUrl(transactions[i].currency, 'address/' + transactions[i].other_parties[j])
143+
addressAnchor.target = '_blank'
144+
addressAnchor.innerText = (transactions[i].other_parties[j] || '').substr(0, 5) + '...'
145+
otherParties.appendChild(addressAnchor)
146+
}
145147
}
146148
row.appendChild(otherParties)
147149

views/layout.pug

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ html
33
head
44
title= title
55
link(rel='stylesheet', href='/stylesheets/style.css')
6-
script(src='https://cdn.zabo.com/0.8.0/zabo.js')
6+
script(src='https://cdn.zabo.com/0.8.1/zabo.js')
77
body
88
block content
99
script(src='/scripts/utils.js')

0 commit comments

Comments
 (0)