Skip to content

Commit

Permalink
Fix Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mzparacha committed Aug 8, 2024
1 parent 91eaae8 commit 0d3f211
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,10 @@ export const EXCEPTION_CASE_VANILLA_getCommunityById = async (
// HACK: 8762 -- find a way to call getCommunityById trpc in non-react files
// when u do, update `EXCEPTION_CASE_VANILLA_getCommunityById` name and make the
// call from that function
const response = await axios.get(`
${app.serverUrl()}/v1/community.getCommunity?batch=1&input=%7B%220%22%3A%7B%22id%22%3A%22${communityId}%22%2C%22include_node_info%22%3A${includeNodeInfo}%7D%7D
`);
const response = await axios.get(
// eslint-disable-next-line max-len
`${app.serverUrl()}/v1/community.getCommunity?batch=1&input=%7B%220%22%3A%7B%22id%22%3A%22${communityId}%22%2C%22include_node_info%22%3A${includeNodeInfo}%7D%7D`,
);
return response?.data[0]?.result.data;
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React, { useCallback, useState } from 'react';
import { slugifyPreserveDashes } from 'shared/utils';
import app from 'state';
import {
useEditCommunityBannerMutation,
// useEditCommunityBannerMutation,
useEditCommunityTagsMutation,
useGetCommunityByIdQuery,
useUpdateCommunityMutation,
Expand Down Expand Up @@ -63,7 +63,7 @@ const CommunityProfileForm = () => {
enabled: !!app.activeChainId(),
});

const { mutateAsync: editBanner } = useEditCommunityBannerMutation();
// const { mutateAsync: editBanner } = useEditCommunityBannerMutation();
const { mutateAsync: editTags } = useEditCommunityTagsMutation();
const { mutateAsync: updateCommunity } = useUpdateCommunityMutation({
communityId: community?.id || '',
Expand Down

0 comments on commit 0d3f211

Please sign in to comment.