Fix bug loading the name of a Safe
This commit is contained in:
parent
88798eff97
commit
87d12178ed
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue