diff --git a/client/src/components/molecules/VersionNumbers/index.tsx b/client/src/components/molecules/VersionNumbers/index.tsx index aadf29c..7319878 100644 --- a/client/src/components/molecules/VersionNumbers/index.tsx +++ b/client/src/components/molecules/VersionNumbers/index.tsx @@ -79,15 +79,15 @@ export default class VersionNumbers extends PureComponent< // for canceling axios requests public signal = axios.CancelToken.source() - public async componentDidMount() { - this.getOceanVersions() - this.getFaucetVersion() - } - public componentWillUnmount() { this.signal.cancel() } + public componentWillReceiveProps() { + this.getOceanVersions() + this.getFaucetVersion() + } + private async getOceanVersions() { const { ocean } = this.context // wait until ocean object is properly populated