Skip to content

Commit

Permalink
Disable fetching of view rate (#3190)
Browse files Browse the repository at this point in the history
Co-authored-by: miko <[email protected]>
  • Loading branch information
keikari and miko authored Dec 4, 2024
1 parent 8e8bada commit a30ccf8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 0 additions & 2 deletions ui/page/channels/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
selectClaimsByUri,
} from 'redux/selectors/claims';
import { doFetchOdyseeMembershipForChannelIds } from 'redux/actions/memberships';
import { doUserViewRateList } from 'redux/actions/rewards';
import { doFetchChannelListMine } from 'redux/actions/claims';
import { doSetActiveChannel } from 'redux/actions/app';
import { selectHasYoutubeChannels } from 'redux/selectors/user';
Expand All @@ -25,7 +24,6 @@ const perform = {
doFetchChannelListMine,
doSetActiveChannel,
doFetchOdyseeMembershipForChannelIds,
doUserViewRateList,
};

export default connect(select, perform)(ChannelsPage);
5 changes: 1 addition & 4 deletions ui/page/channels/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ type Props = {
fetchingChannels: boolean,
hasYoutubeChannels: boolean,
doFetchChannelListMine: () => void,
doUserViewRateList: () => void,
doSetActiveChannel: (string) => void,
doFetchOdyseeMembershipForChannelIds: (claimIds: ClaimIds) => void,
};
Expand All @@ -35,7 +34,6 @@ export default function ChannelsPage(props: Props) {
fetchingChannels,
hasYoutubeChannels,
doFetchChannelListMine,
doUserViewRateList,
doSetActiveChannel,
doFetchOdyseeMembershipForChannelIds,
} = props;
Expand All @@ -45,11 +43,10 @@ export default function ChannelsPage(props: Props) {
React.useEffect(() => {
if (channelIds) {
doFetchOdyseeMembershipForChannelIds(channelIds);
doUserViewRateList();
} else {
doFetchChannelListMine();
}
}, [channelIds, doFetchChannelListMine, doFetchOdyseeMembershipForChannelIds, doUserViewRateList]);
}, [channelIds, doFetchChannelListMine, doFetchOdyseeMembershipForChannelIds]);

const { push } = useHistory();

Expand Down

0 comments on commit a30ccf8

Please sign in to comment.