Skip to content

Commit

Permalink
Merge pull request #1365 from torusresearch/fix/browser-list-confirm-…
Browse files Browse the repository at this point in the history
…modal

Confirm modal and browser list fixes
  • Loading branch information
chaitanyapotti authored Dec 14, 2020
2 parents b72d528 + 28ccaf7 commit 76cb1eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ export default {
.map((x) => {
const share = this.allDeviceShares[x]
const dateFormated = new Date(share.dateAdded).toLocaleString()
share.browserList = share.browsers.map((browser) => browser.browserName).join(', ')
share.browserList = share.browsers
.map((browser) => browser.browserName)
.slice(0, 3)
.join(', ')
share.dateFormated = dateFormated
return share
})
Expand Down
1 change: 0 additions & 1 deletion app/src/components/Tkey/TkeyInputView/TkeyInputView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ export default {
.map((x) => {
const share = this.allDeviceShares[x]
const dateFormated = new Date(share.dateAdded).toLocaleString()
share.browserList = share.browsers.map((browser) => browser.browserName).join(', ')
share.dateFormated = dateFormated
return share
})
Expand Down
12 changes: 1 addition & 11 deletions app/src/views/Wallet/Wallet.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,7 @@ export default {
},
currentConfirmModal() {
if (this.confirmModals.length > 0) {
const {
txType: type,
txParams,
selectedCurrency,
currencyData,
balance,
networkType: network,
jwtToken,
tokenRates,
origin,
} = this.confirmModals[0]
const { type, txParams, selectedCurrency, currencyData, balance, network, jwtToken, tokenRates, origin } = this.confirmModals[0]
return {
type,
txParams,
Expand Down

0 comments on commit 76cb1eb

Please sign in to comment.