From 6eebb25b4dceecdb019d1b5e6876569b476c363f Mon Sep 17 00:00:00 2001 From: zy4m Date: Mon, 16 Jan 2023 21:50:43 +0100 Subject: [PATCH] Fixed location for zones --- src/components/PetCard/PetCard.tsx | 2 +- src/components/PetCardDialog/PetCardDialog.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PetCard/PetCard.tsx b/src/components/PetCard/PetCard.tsx index 91ef836..ba103fd 100644 --- a/src/components/PetCard/PetCard.tsx +++ b/src/components/PetCard/PetCard.tsx @@ -38,7 +38,7 @@ export default class PetCard extends React.Component
- Location: {Globals.Expeditions[this.props.pet.location]}
+ Location: {this.props.pet.location.startsWith('E') ? Globals.Expeditions[this.props.pet.location] : this.props.pet.location}
Type: {this.props.pet.type}
diff --git a/src/components/PetCardDialog/PetCardDialog.tsx b/src/components/PetCardDialog/PetCardDialog.tsx index 882fce9..8147fb8 100644 --- a/src/components/PetCardDialog/PetCardDialog.tsx +++ b/src/components/PetCardDialog/PetCardDialog.tsx @@ -31,7 +31,7 @@ export default class PetCardDialog extends React.Component
- Location: {Globals.Expeditions[this.props.selectedPet.location]}
+ Location: {this.props.selectedPet.location.startsWith('E') ? Globals.Expeditions[this.props.selectedPet.location] : this.props.selectedPet.location}
Type: {this.props.selectedPet.type}
Drop Chance: 1/{(this.props.selectedPet.pity/4).toLocaleString()}
Base Pity: {(this.props.selectedPet.pity/2).toLocaleString()} {this.props.selectedPet.location.startsWith('E') ? 'hrs.':''}