@luceosports/play-rendering 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luceosports/play-rendering",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "main": "dist/play-rendering.js",
5
5
  "types": "dist/play-rendering.d.ts",
6
6
  "scripts": {
Binary file
@@ -147,11 +147,11 @@ export default class PlayerLayer extends BaseLayer {
147
147
  }
148
148
 
149
149
  let playerTextLabel = player.textLabel;
150
- if (playerMapItem && this.options.labelsOverrideType) {
150
+ if (playerMapItem) {
151
151
  if (playerMapItem.textOverride) {
152
152
  playerTextLabel = playerMapItem.textOverride;
153
153
  }
154
- if (playerMapItem.teamPlayerId) {
154
+ if (playerMapItem.teamPlayerId && this.options.labelsOverrideType) {
155
155
  const teamPlayer = this.staticData.teamPlayers.find(p => p.id === playerMapItem.teamPlayerId);
156
156
  if (teamPlayer) {
157
157
  const fallbackLabel = teamPlayer.User_Name.split(' ')