aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-04-06 02:28:25 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-04-06 02:28:25 +0800
commit4efc718074a819c15beceece5e0f08b49c8b60bb (patch)
treeea7d107daa61a22b93599c1a923abdd1436f1434 /app
parent1153120fe84e9d4cde47a7e416028be0fec3c61c (diff)
downloadtangerine-wallet-browser-4efc718074a819c15beceece5e0f08b49c8b60bb.tar
tangerine-wallet-browser-4efc718074a819c15beceece5e0f08b49c8b60bb.tar.gz
tangerine-wallet-browser-4efc718074a819c15beceece5e0f08b49c8b60bb.tar.bz2
tangerine-wallet-browser-4efc718074a819c15beceece5e0f08b49c8b60bb.tar.lz
tangerine-wallet-browser-4efc718074a819c15beceece5e0f08b49c8b60bb.tar.xz
tangerine-wallet-browser-4efc718074a819c15beceece5e0f08b49c8b60bb.tar.zst
tangerine-wallet-browser-4efc718074a819c15beceece5e0f08b49c8b60bb.zip
make migration-24 compat with first-time-state
Diffstat (limited to 'app')
-rw-r--r--app/scripts/migrations/024.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/scripts/migrations/024.js b/app/scripts/migrations/024.js
index 7a0391805..043b47ccc 100644
--- a/app/scripts/migrations/024.js
+++ b/app/scripts/migrations/024.js
@@ -29,8 +29,8 @@ module.exports = {
function transformState (state) {
const newState = state
+ if (!newState.TransactionController) return newState
const transactions = newState.TransactionController.transactions
-
newState.TransactionController.transactions = transactions.map((txMeta, _, txList) => {
if (
txMeta.status === 'unapproved' &&