From cfb0828847de9d965fa20ddfca3266e497b6bd14 Mon Sep 17 00:00:00 2001 From: Fabian Date: Mon, 9 Dec 2019 19:57:22 +0100 Subject: [PATCH] Fabo/fix undelegationendtime (#177) * fix issues with undelegatio end time * catch undelegation attribute not found --- lib/reducers/cosmosV2-reducers.js | 2 +- lib/reducers/terraV3-reducers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/reducers/cosmosV2-reducers.js b/lib/reducers/cosmosV2-reducers.js index 021880aacb..5de6c28e71 100644 --- a/lib/reducers/cosmosV2-reducers.js +++ b/lib/reducers/cosmosV2-reducers.js @@ -103,7 +103,7 @@ function undelegationEndTimeReducer(transaction) { } return !!completionTimeAttribute }) - return completionTimeAttribute.value + return completionTimeAttribute ? completionTimeAttribute.value : undefined } else { return null } diff --git a/lib/reducers/terraV3-reducers.js b/lib/reducers/terraV3-reducers.js index 584d5d0c9e..9095485948 100644 --- a/lib/reducers/terraV3-reducers.js +++ b/lib/reducers/terraV3-reducers.js @@ -17,7 +17,7 @@ function undelegationEndTimeReducer(transaction) { } return !!completionTimeAttribute }) - return completionTimeAttribute.value + return completionTimeAttribute ? completionTimeAttribute.value : undefined } else { return null }