diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-05-10 06:59:10 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-05-10 06:59:53 +0800 |
commit | e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d (patch) | |
tree | a30f176b8e9340e0ff806e10de4603716203309f /packages/website | |
parent | c7a147f49d6e16e677eab5a9a70191720ec61963 (diff) | |
download | dexon-sol-tools-e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d.tar dexon-sol-tools-e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d.tar.gz dexon-sol-tools-e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d.tar.bz2 dexon-sol-tools-e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d.tar.lz dexon-sol-tools-e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d.tar.xz dexon-sol-tools-e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d.tar.zst dexon-sol-tools-e83b056bd494e0e6a16fd0b9bfdb84bac2ab271d.zip |
Clear relayer grid state when fetching
Diffstat (limited to 'packages/website')
-rw-r--r-- | packages/website/ts/components/relayer_index/relayer_index.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/website/ts/components/relayer_index/relayer_index.tsx b/packages/website/ts/components/relayer_index/relayer_index.tsx index df208753b..dffd0f83f 100644 --- a/packages/website/ts/components/relayer_index/relayer_index.tsx +++ b/packages/website/ts/components/relayer_index/relayer_index.tsx @@ -93,6 +93,12 @@ export class RelayerIndex extends React.Component<RelayerIndexProps, RelayerInde } private async _fetchRelayerInfosAsync(): Promise<void> { try { + if (!this._isUnmounted) { + this.setState({ + relayerInfos: undefined, + error: undefined, + }); + } const relayerInfos = await backendClient.getRelayerInfosAsync(); if (!this._isUnmounted) { this.setState({ |