Skip to content

Commit

Permalink
- fixed error on confirm modal
Browse files Browse the repository at this point in the history
- show top 3 browsers on device detected screen
  • Loading branch information
lionellbriones committed Dec 14, 2020
1 parent e233842 commit 28ccaf7
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 28ccaf7

Please sign in to comment.