fix top claim search result
This commit is contained in:
parent
d408b0fd96
commit
98855d4fd5
2 changed files with 3 additions and 1 deletions
|
@ -200,7 +200,8 @@ export const makeSelectWinningUriForQuery = (query: string) => {
|
|||
|
||||
const effectiveAmount1 = claim1 && claim1.meta.effective_amount;
|
||||
const effectiveAmount2 = claim2 && claim2.meta.effective_amount;
|
||||
return effectiveAmount1 > effectiveAmount2 ? claim1.canonical_url : claim2.canonical_url;
|
||||
|
||||
return Number(effectiveAmount1) > Number(effectiveAmount2) ? claim1.canonical_url : claim2.canonical_url;
|
||||
}
|
||||
);
|
||||
};
|
||||
|
|
|
@ -32,5 +32,6 @@
|
|||
}
|
||||
|
||||
.search__top-link {
|
||||
margin-top: var(--spacing-s);
|
||||
font-weight: var(--font-weight-body);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue