Skip to content

Commit

Permalink
Merge pull request #12 from tomrpl/feat/fixing-warning-return-error
Browse files Browse the repository at this point in the history
feat(error): removing a warning error that was causing the search to …
  • Loading branch information
tomrpl authored Jul 30, 2024
2 parents 044cd55 + 167452d commit 89da754
Show file tree
Hide file tree
Showing 3 changed files with 508 additions and 12 deletions.
2 changes: 2 additions & 0 deletions src/component/OracleDecoder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ const OracleDecoder = () => {

await fetchOracleDataDetails(oracleAddress, selectedNetwork.value);
setTriggerCheck(true);

setIsSubmitting(false);
};

useEffect(() => {
Expand Down
5 changes: 0 additions & 5 deletions src/hooks/useFetchOracleData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ const useFetchOracleData = () => {
return;
}

if (!markets || markets.markets.length === 0) {
setErrors((prevErrors) => [...prevErrors, ErrorTypes.NO_MARKETS_FOUND]);
return;
}

setOracleData(correctOracleData);
setMarketData(markets);
} catch (error) {
Expand Down
Loading

0 comments on commit 89da754

Please sign in to comment.