From b65934cc7f9042c40959e1b4602f6b8e51c86dac Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Fri, 8 Jan 2021 11:17:04 -0500 Subject: [PATCH] fix reposts not showing up as winning claim in search suggestions --- ui/redux/selectors/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/redux/selectors/search.js b/ui/redux/selectors/search.js index 592fb7466..b29e19939 100644 --- a/ui/redux/selectors/search.js +++ b/ui/redux/selectors/search.js @@ -125,7 +125,8 @@ export const makeSelectWinningUriForQuery = (query: string) => { : claim1.repost_url || claim1.canonical_url; } - const effectiveAmount1 = claim1 && claim1.meta.effective_amount; + const effectiveAmount1 = claim1 && (claim1.repost_bid_amount || claim1.meta.effective_amount); + // claim2 will never have a repost_bid_amount because reposts never start with "@" const effectiveAmount2 = claim2 && claim2.meta.effective_amount; if (!matureEnabled) {