Skip to content

Commit

Permalink
fix: refresh contract metadata if during analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
aramalipoor committed Nov 25, 2022
1 parent 22bb055 commit ed698ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/common/hooks/useSmartContract.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export function useSmartContract<TInitialConfig = any, TInfo = any>({

useInterval(() => {
const detectingFeatures =
!result.data?.features ||
!result?.data?.analysisState ||
(result.data.analysisState !== 'succeeded' &&
result.data.analysisState !== 'failed');

Expand Down

0 comments on commit ed698ed

Please sign in to comment.