OSDN Git Service

update veto display and the time stemp disply
authorZhiting Lin <zlin035@uottawa.ca>
Tue, 18 Jun 2019 06:59:32 +0000 (14:59 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Tue, 18 Jun 2019 06:59:32 +0000 (14:59 +0800)
src/features/transactions/components/Show.jsx

index bdef242..472e3da 100644 (file)
@@ -27,7 +27,7 @@ class Show extends BaseShow {
     if (item) {
       const confirmation = this.props.highestBlock - item.blockHeight + 1
       const btmInput = item.inputs.reduce((sum, input) => {
-        if ((input.type === 'spend' || input.type === 'cross_chain_in') && input.assetId === btmID) {
+        if ((input.type === 'spend' || input.type === 'cross_chain_in'|| input.type === 'veto') && input.assetId === btmID) {
           sum = BigNumber(input.amount).plus(sum)
         }
         return sum
@@ -116,7 +116,7 @@ class Show extends BaseShow {
             title={t('form.detail')}
             items={[
               {label: 'ID', value: item.id},
-              {label: t('form.timestamp'), value:  unconfirmedItem ? '-' : moment.unix(item.timestamp).format()},
+              {label: t('form.timestamp'), value:  unconfirmedItem ? '-' : moment(item.timestamp).format()},
               {label: t('form.blockId'), value: unconfirmedItem? '-' : item.blockId},
               {label: t('form.blockHeight'), value: unconfirmedItem?
                   t('transaction.unconfirmedItem'): item.blockHeight },