fix(betterActivities): handle xbox edge case

This commit is contained in:
D3SOX 2024-07-10 21:12:27 +02:00
parent f80593aef8
commit 853efa7a90
No known key found for this signature in database
GPG key ID: 39EC1673FC37B048

View file

@ -117,14 +117,17 @@ export function getApplicationIcons(activities: Activity[], preferSmall = false)
application
});
}
}
} else {
if (platform === "xbox") {
} else if (platform === "xbox") {
applicationIcons.push({
image: { src: xboxUrl, alt: "Xbox" },
activity
});
}
} else if (platform === "xbox") {
applicationIcons.push({
image: { src: xboxUrl, alt: "Xbox" },
activity
});
}
}