Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sstraatemans committed Jan 21, 2025
1 parent 48fff7c commit f08ab1e
Showing 1 changed file with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,6 @@ export const TransactionsProvider: FC<PropsWithChildren> = ({ children }) => {

r.subscribe(
(nextData: any) => {
console.log({ data, nextData });
if (nextData?.data?.transaction?.result?.goodResult) {
analyticsEvent(data.type.name, {
chainId: data?.chainId ?? '',
networkId: data?.networkId ?? '',
requestKey: data?.requestKey ?? '',
message: data?.result?.status,
});
}

if (
nextData?.errors?.length !== undefined ||
nextData?.data?.transaction?.result.badResult
Expand Down Expand Up @@ -175,7 +165,6 @@ export const TransactionsProvider: FC<PropsWithChildren> = ({ children }) => {
}
},
(errorData) => {
console.log('error');
analyticsEvent(`error:${data.type.name}`, {
name: data.type.name,
chainId: data?.chainId ?? '',
Expand All @@ -192,7 +181,12 @@ export const TransactionsProvider: FC<PropsWithChildren> = ({ children }) => {
});
},
() => {
console.log(11111, data);
analyticsEvent(data.type.name, {
chainId: data?.chainId ?? '',
networkId: data?.networkId ?? '',
requestKey: data?.requestKey ?? '',
message: data?.result?.status,
});
// eslint-disable-next-line @typescript-eslint/no-floating-promises
store.removeTransaction(data);
},
Expand Down

0 comments on commit f08ab1e

Please sign in to comment.