Skip to content

Commit

Permalink
Merge pull request #9 from bengoodheart/bug/7/hotfix
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
benjamingoodheart committed Sep 10, 2022
2 parents b360bc4 + 3442b7d commit da8635f
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions src/components/StillInFirst.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,26 @@
<b-badge variant="primary" v-if="firstAnswer.value == true">
<h1>YES</h1>
</b-badge>
<br />
The New York Metropolitans are currently in first in
<span v-if="NLEastTable.metsDivFirst === true">the NL East</span><span v-if="NLTable.metsLeagueFirst === true">
and the
National League</span>!

<span v-if="NLEastTable.metsDivFirst === true">
<br />
The New York Metropolitans are currently in first in the NL East</span
><span v-if="NLTable.metsLeagueFirst === true">
and the National League</span
>
<span v-if="firstAnswer.value == true">!</span>

<b-badge variant="danger" v-if="firstAnswer.value == false">
<h1>Nope</h1>
</b-badge>
<br />
<b-img thumbnail src="@/assets/notinfirst.jpg" fluid v-if="firstAnswer.value == false"></b-img>
<br />
<b-img
thumbnail
src="@/assets/notinfirst.jpg"
fluid
v-if="firstAnswer.value == false"
></b-img>
</b-card>
</div>
</template>
Expand Down Expand Up @@ -49,7 +59,7 @@ export default {
async function inFirstAtAll() {
const league = getMetsLeagueFirst();
const div = getMetsDivFirst();
const result = league || div == true ? true : false;
const result = league == true || div == true ? true : false;
firstAnswer.value = await result;
return firstAnswer.value;
}
Expand All @@ -68,12 +78,10 @@ export default {
};
},
async created() {
await this.inFirstAtAll();
await this.getMetsDivFirst();
await this.getMetsLeagueFirst();
},
};
</script>
<style>
</style>
<style></style>

0 comments on commit da8635f

Please sign in to comment.