Skip to content

Commit

Permalink
fix(ui): return broadcast result in useInjectiveCallOptionMutation
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukipond8531 committed Feb 25, 2025
1 parent 1c8a075 commit 6bf084a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions package/ui/src/pages/options/tx/injective.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ export function useInjectiveCallOptionMutation() {
});

console.log(result);

return result;
},
{
onSuccess: () => {
Expand All @@ -91,7 +93,7 @@ export function useInjectiveCallOptionMutation() {
queryClient.refetchQueries([{ method: "position" }]);
queryClient.refetchQueries(["get_balance", address]);
},
},
}
);
}

Expand Down Expand Up @@ -239,7 +241,7 @@ export function useInjectiveExerciseCallOptionMutation() {
queryClient.refetchQueries([{ method: "position" }]);
queryClient.refetchQueries(["get_balance", address]);
},
},
}
);
}

Expand Down Expand Up @@ -315,6 +317,6 @@ export function useInjectiveCancelOrderMutation() {
queryClient.refetchQueries([{ method: "position" }]);
queryClient.refetchQueries(["get_balance", address]);
},
},
}
);
}

0 comments on commit 6bf084a

Please sign in to comment.