Skip to content

Commit

Permalink
reset errors and loading state on call
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeRx committed Nov 8, 2022
1 parent 36fcf0c commit 3d55299
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/hooks/flask/useTransactionInsightSnap.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export function useTransactionInsightSnap({ transaction, chainId, snapId }) {
useEffect(() => {
async function fetchInsight() {
try {
setError(undefined);
setLoading(true);

const d = await handleSnapRequest({
snapId,
origin: '',
Expand Down

0 comments on commit 3d55299

Please sign in to comment.