dashboard of Bytom
Revision | 3c31ab01debd9f61b2c26d9aa5693514ccead5e6 (tree) |
---|---|
Zeit | 2021-08-20 19:04:06 |
Autor | j <coffce404@gmai...> |
Commiter | j |
fix: update
@@ -28,9 +28,11 @@ const setDefaultAccount = () => { | ||
28 | 28 | return chainClient() |
29 | 29 | .accounts.query() |
30 | 30 | .then((result) => { |
31 | - const account = result.data[0].alias | |
32 | - dispatch(switchAccount(account)) | |
33 | - return account | |
31 | + if (result.data && result.data[0]) { | |
32 | + const account = result.data[0].alias | |
33 | + dispatch(switchAccount(account)) | |
34 | + return account | |
35 | + } | |
34 | 36 | }) |
35 | 37 | } |
36 | 38 | } |
@@ -68,7 +68,7 @@ class Index extends React.Component { | ||
68 | 68 | |
69 | 69 | <div className={styles.choices}> |
70 | 70 | |
71 | - <div className={styles.choice_wrapper} style={{ opacity: 0.6, 'pointer-events': 'none'}}> | |
71 | + <div className={styles.choice_wrapper}> | |
72 | 72 | <label> |
73 | 73 | <input className={styles.choice_radio_button} |
74 | 74 | type='radio' |
@@ -159,7 +159,7 @@ class CrossChainTransaction extends React.Component { | ||
159 | 159 | fieldProps={gasLevel} |
160 | 160 | btmAmountUnit={this.props.btmAmountUnit} |
161 | 161 | /> |
162 | - <span className={styles.feeDescription}> {t('transaction.normal.feeDescription')}</span> | |
162 | + <span className={styles.feeDescription}></span> | |
163 | 163 | </div>]} |
164 | 164 | </div> |
165 | 165 | </TxContainer> |
@@ -359,7 +359,7 @@ class IssueAssets extends React.Component { | ||
359 | 359 | fieldProps={gasLevel} |
360 | 360 | btmAmountUnit={this.props.btmAmountUnit} |
361 | 361 | /> |
362 | - <span className={styles.feeDescription}> {t('transaction.normal.feeDescription')}</span> | |
362 | + <span className={styles.feeDescription}></span> | |
363 | 363 | </div> |
364 | 364 | } |
365 | 365 |
@@ -216,7 +216,7 @@ class NormalTxForm extends React.Component { | ||
216 | 216 | fieldProps={gasLevel} |
217 | 217 | btmAmountUnit={this.props.btmAmountUnit} |
218 | 218 | /> |
219 | - <span className={styles.feeDescription}> {t('transaction.normal.feeDescription')}</span> | |
219 | + <span className={styles.feeDescription}></span> | |
220 | 220 | </div>]} |
221 | 221 | </div> |
222 | 222 | </TxContainer> |
@@ -149,7 +149,7 @@ class Vote extends React.Component { | ||
149 | 149 | fieldProps={gasLevel} |
150 | 150 | btmAmountUnit={this.props.btmAmountUnit} |
151 | 151 | /> |
152 | - <span className={styles.feeDescription}> {t('transaction.normal.feeDescription')}</span> | |
152 | + <span className={styles.feeDescription}></span> | |
153 | 153 | </div>]} |
154 | 154 | </div> |
155 | 155 | </TxContainer> |