Fix bug loading the name of a Safe

This commit is contained in:
Germán Martínez 2019-06-14 18:33:48 +02:00
parent 104609b66e
commit 25919d4361
2 changed files with 5 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const RemoveSafeComponent = ({
open={isOpen} open={isOpen}
> >
<Row align="center" grow className={classes.heading}> <Row align="center" grow className={classes.heading}>
<Paragraph className={classes.manage} noMargin weight="bolder" > <Paragraph className={classes.manage} noMargin weight="bolder">
Remove Safe Remove Safe
</Paragraph> </Paragraph>
<IconButton onClick={onClose} disableRipple> <IconButton onClick={onClose} disableRipple>
@ -84,7 +84,8 @@ const RemoveSafeComponent = ({
<Row className={classes.description}> <Row className={classes.description}>
<Paragraph noMargin> <Paragraph noMargin>
Removing a Safe only removes it from your interface. Removing a Safe only removes it from your interface.
<b>It does not delete the Safe</b>. <b>It does not delete the Safe</b>
.
You can always add it back using the Safe's address. You can always add it back using the Safe's address.
</Paragraph> </Paragraph>
</Row> </Row>

View File

@ -29,8 +29,9 @@ class SafeView extends React.Component<Props> {
componentDidUpdate(prevProps) { componentDidUpdate(prevProps) {
const { activeTokens } = this.props const { activeTokens } = this.props
const oldActiveTokensSize = prevProps.activeTokens.size
if (activeTokens.size > prevProps.activeTokens.size) { if (oldActiveTokensSize > 0 && activeTokens.size > oldActiveTokensSize) {
this.checkForUpdates() this.checkForUpdates()
} }
} }