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 88798eff97
commit 87d12178ed
2 changed files with 5 additions and 3 deletions

View File

@ -51,7 +51,7 @@ const RemoveSafeComponent = ({
open={isOpen}
>
<Row align="center" grow className={classes.heading}>
<Paragraph className={classes.manage} noMargin weight="bolder" >
<Paragraph className={classes.manage} noMargin weight="bolder">
Remove Safe
</Paragraph>
<IconButton onClick={onClose} disableRipple>
@ -84,7 +84,8 @@ const RemoveSafeComponent = ({
<Row className={classes.description}>
<Paragraph noMargin>
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.
</Paragraph>
</Row>

View File

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