From 4aa94a7bfd5af49846d22074f3fe4c9d5608f0c5 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Wed, 25 May 2022 14:30:23 +0800 Subject: [PATCH] Fix variable name confusion Per convention, 'ByUri' would mean it's the array/object that is storing the entire list, but this is actually the specific entry. --- ui/component/wunderbarSuggestion/index.js | 2 +- ui/component/wunderbarSuggestion/view.jsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/component/wunderbarSuggestion/index.js b/ui/component/wunderbarSuggestion/index.js index b3125f0cd..db733861b 100644 --- a/ui/component/wunderbarSuggestion/index.js +++ b/ui/component/wunderbarSuggestion/index.js @@ -8,7 +8,7 @@ const select = (state, props) => { return { claim: selectClaimForUri(state, uri), isResolvingUri: selectIsUriResolving(state, uri), - odyseeMembershipByUri: selectOdyseeMembershipForUri(state, uri), + odyseeMembership: selectOdyseeMembershipForUri(state, uri), }; }; diff --git a/ui/component/wunderbarSuggestion/view.jsx b/ui/component/wunderbarSuggestion/view.jsx index a0e78bd53..2e1a87016 100644 --- a/ui/component/wunderbarSuggestion/view.jsx +++ b/ui/component/wunderbarSuggestion/view.jsx @@ -12,11 +12,11 @@ type Props = { claim: ?Claim, uri: string, isResolvingUri: boolean, - odyseeMembershipByUri: ?string, + odyseeMembership: ?string, }; export default function WunderbarSuggestion(props: Props) { - const { claim, uri, isResolvingUri, odyseeMembershipByUri } = props; + const { claim, uri, isResolvingUri, odyseeMembership } = props; if (isResolvingUri) { return ( @@ -63,7 +63,7 @@ export default function WunderbarSuggestion(props: Props) {
{claim.value.title}
{isChannel ? claim.name : (claim.signing_channel && claim.signing_channel.name) || __('Anonymous')} - +