OSDN Git Service

update the address index
authorZhiting Lin <zlin035@uottawa.ca>
Tue, 2 Apr 2019 03:06:45 +0000 (11:06 +0800)
committerZhiting Lin <zlin035@uottawa.ca>
Tue, 2 Apr 2019 03:06:45 +0000 (11:06 +0800)
src/features/accounts/components/AccountShow.jsx

index 02c1678..f1953c0 100644 (file)
@@ -121,7 +121,7 @@ class AccountShow extends BaseShow {
           {(this.state.addresses || []).length > 0 &&
           <KeyValueTable title={t('account.address')}
                          items={this.state.addresses.map((item, index) => ({
-                           label: index,
+                           label: index+1,
                            value: item.address,
                            program: (e => this.showProgram(item.program))
                          }))}/>
@@ -130,7 +130,7 @@ class AccountShow extends BaseShow {
           {(this.state.changeAddresses || []).length > 0 &&
           <KeyValueTable title={t('account.changeAddress')}
                          items={this.state.changeAddresses.map((item, index) => ({
-                           label: index,
+                           label: index+1,
                            value: item.address,
                            program: (e => this.showProgram(item.program))
                          }))}/>