Skip to content

Commit

Permalink
fix delegation confirm. ui bug
Browse files Browse the repository at this point in the history
  • Loading branch information
v-almonacid committed Sep 16, 2020
1 parent 20359b9 commit f528c7e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
26 changes: 15 additions & 11 deletions src/components/Delegation/DelegationConfirmation.js
Expand Up @@ -245,7 +245,7 @@ const DelegationConfirmation = ({
const reward = approximateReward(amountToDelegate)

const isConfirmationDisabled =
(!isEasyConfirmationEnabled && !password) || processingTx
(!isEasyConfirmationEnabled && !password && !isHW) || processingTx

return (
<View style={styles.container}>
Expand Down Expand Up @@ -276,16 +276,20 @@ const DelegationConfirmation = ({
label={intl.formatMessage(txLabels.amount)}
/>
</View>
{!isEasyConfirmationEnabled && (
<View style={styles.input}>
<ValidatedTextInput
secureTextEntry
value={password}
label={intl.formatMessage(txLabels.password)}
onChangeText={setPassword}
/>
</View>
)}
{/* eslint-disable indent */
!isEasyConfirmationEnabled &&
!isHW && (
<View style={styles.input}>
<ValidatedTextInput
secureTextEntry
value={password}
label={intl.formatMessage(txLabels.password)}
onChangeText={setPassword}
/>
</View>
)
/* eslint-enable indent */
}
<View style={styles.itemBlock}>
<Text style={styles.itemTitle}>
{intl.formatMessage(messages.rewardsExplanation)}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Receive/AddressView.js
Expand Up @@ -67,7 +67,7 @@ const _handleOnVerifyAddress = async (
)
} catch (e) {
if (e instanceof LocalizableError) {
await showErrorDialog(errorMessages.hwConnectionError, intl, {
await showErrorDialog(errorMessages.generalLocalizableError, intl, {
message: intl.formatMessage({
id: e.id,
defaultMessage: e.defaultMessage,
Expand Down

0 comments on commit f528c7e

Please sign in to comment.