@@ -100,29 +100,23 @@ export class SelectedItemInfo extends FloatElement {
100
100
101
101
const containerChildren : TemplateResult [ ] = [ ] ;
102
102
103
- if ( isSkin ( this . asset . description ) ) {
104
- if ( this . itemInfo ) {
105
- const fadePercentage = getFadePercentage ( this . asset . description , this . itemInfo ) ;
106
-
107
- containerChildren . push (
108
- html `< div >
109
- Float: ${ this . itemInfo . floatvalue . toFixed ( 14 ) } ${ renderClickableRank ( this . itemInfo ) }
110
- </ div > `
111
- ) ;
112
- containerChildren . push ( html `< div > Paint Seed: ${ formatSeed ( this . itemInfo ) } </ div > ` ) ;
113
- if ( fadePercentage !== undefined ) {
114
- containerChildren . push ( html `< div > Fade: ${ floor ( fadePercentage , 5 ) } %</ div > ` ) ;
115
- }
116
- }
117
- } else if ( isCharm ( this . asset . description ) ) {
118
- if ( this . itemInfo ) {
119
- containerChildren . push (
120
- html `< div >
121
- Pattern:
122
- #${ this . itemInfo . keychains ?. length > 0 ? this . itemInfo . keychains [ 0 ] . pattern : 'Unknown' }
123
- </ div > `
124
- ) ;
103
+ if ( isSkin ( this . asset . description ) && this . itemInfo ) {
104
+ containerChildren . push (
105
+ html `< div > Float: ${ this . itemInfo . floatvalue . toFixed ( 14 ) } ${ renderClickableRank ( this . itemInfo ) } </ div > `
106
+ ) ;
107
+
108
+ containerChildren . push ( html `< div > Paint Seed: ${ formatSeed ( this . itemInfo ) } </ div > ` ) ;
109
+
110
+ const fadePercentage = getFadePercentage ( this . asset . description , this . itemInfo ) ;
111
+ if ( fadePercentage !== undefined ) {
112
+ containerChildren . push ( html `< div > Fade: ${ floor ( fadePercentage , 5 ) } %</ div > ` ) ;
125
113
}
114
+ } else if ( isCharm ( this . asset . description ) && this . itemInfo ) {
115
+ containerChildren . push (
116
+ html `< div >
117
+ Pattern: #${ this . itemInfo . keychains ?. length > 0 ? this . itemInfo . keychains [ 0 ] . pattern : 'Unknown' }
118
+ </ div > `
119
+ ) ;
126
120
}
127
121
128
122
if ( isSellableOnCSFloat ( this . asset . description ) ) {
0 commit comments