File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
apps/staking/src/components/OracleIntegrityStaking Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -804,7 +804,15 @@ const doSort = (
804
804
return value === 0 ? Number ( a . poolCapacity - b . poolCapacity ) : value ;
805
805
}
806
806
case SortField . QualityRanking : {
807
- return Number ( a . qualityRanking - b . qualityRanking ) ;
807
+ if ( a . qualityRanking === 0 && b . qualityRanking === 0 ) {
808
+ return 0 ;
809
+ } else if ( a . qualityRanking === 0 ) {
810
+ return 1 ;
811
+ } else if ( b . qualityRanking === 0 ) {
812
+ return - 1 ;
813
+ } else {
814
+ return Number ( a . qualityRanking - b . qualityRanking ) ;
815
+ }
808
816
}
809
817
case SortField . SelfStake : {
810
818
return Number ( a . selfStake - b . selfStake ) ;
@@ -1029,7 +1037,7 @@ const Publisher = ({
1029
1037
{ publisher . numFeeds }
1030
1038
</ PublisherTableCell >
1031
1039
< PublisherTableCell className = "text-center" >
1032
- { publisher . qualityRanking }
1040
+ { publisher . qualityRanking === 0 ? "-" : publisher . qualityRanking }
1033
1041
</ PublisherTableCell >
1034
1042
< PublisherTableCell
1035
1043
className = { clsx ( "text-right" , { "pr-4 sm:pr-10" : ! isSelf } ) }
You can’t perform that action at this time.
0 commit comments