Commit 97b19cbc authored by tom's avatar tom

fix delete address from watchlist

parent 65fd3abf
......@@ -14,7 +14,7 @@ type Props = {
data: ApiKey;
}
const DeleteAddressModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
const DeleteApiKeyModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
const queryClient = useQueryClient();
const apiFetch = useApiFetch();
......@@ -49,4 +49,4 @@ const DeleteAddressModal: React.FC<Props> = ({ isOpen, onClose, data }) => {
);
};
export default DeleteAddressModal;
export default DeleteApiKeyModal;
......@@ -19,7 +19,7 @@ const DeleteAddressModal: React.FC<Props> = ({ isOpen, onClose, onSuccess, data
const apiFetch = useApiFetch();
const mutationFn = useCallback(() => {
return apiFetch('custom_abi', {
return apiFetch('watchlist', {
pathParams: { id: data.id },
fetchParams: { method: 'DELETE' },
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment