File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ class Card extends react.Component {
94
94
95
95
async componentDidMount ( ) {
96
96
// Refresh stars if on "Installed" tab with stars enabled
97
- if ( CONFIG . activeTab === "Installed" && CONFIG . visual . stars ) {
97
+ if ( CONFIG . activeTab === "Installed" && CONFIG . visual . stars && this . type !== "snippet" ) {
98
98
// https://docs.github.com/en/rest/reference/repos#get-a-repository
99
99
const url = `https://api.github.com/repos/${ this . user } /${ this . repo } ` ;
100
100
// TODO: This implementation could probably be improved.
@@ -363,7 +363,7 @@ class Card extends react.Component {
363
363
364
364
let detail = [ ] ;
365
365
// this.visual.type && detail.push(this.type);
366
- if ( this . type != "snippet" && this . visual . stars ) {
366
+ if ( this . type !== "snippet" && this . visual . stars ) {
367
367
detail . push ( `★ ${ this . state . stars } ` ) ;
368
368
}
369
369
return react . createElement ( Spicetify . ReactComponent . RightClickMenu || "div" , {
You can’t perform that action at this time.
0 commit comments