aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components
diff options
context:
space:
mode:
authorBrandon Millman <brandon.millman@gmail.com>2018-05-10 06:59:10 +0800
committerBrandon Millman <brandon.millman@gmail.com>2018-05-10 06:59:53 +0800
commite83b056bd494e0e6a16fd0b9bfdb84bac2ab271d (patch)
treea30f176b8e9340e0ff806e10de4603716203309f /packages/website/ts/components
parentc7a147f49d6e16e677eab5a9a70191720ec61963 (diff)
downloaddexon-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/ts/components')
-rw-r--r--packages/website/ts/components/relayer_index/relayer_index.tsx6
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({