Skip to content

Commit

Permalink
Fixed: console error of undefined when fetching time for the schedule(#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Apr 4, 2024
1 parent 5379187 commit 176df7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/GroupHistoryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<h3>{{ getTime(history.startTime) }}</h3>
<p>{{ getDate(history.startTime) }}</p>
</ion-label>
<ion-badge color="dark">{{ timeTillRun(history.endTime) }}</ion-badge>
<ion-badge color="dark" v-if="history.endTime">{{ timeTillRun(history.endTime) }}</ion-badge>
</ion-item>
</ion-list>
</ion-content>
Expand Down
2 changes: 1 addition & 1 deletion src/views/BrokeringRoute.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<h3>{{ getTime(groupHistory[0].startTime) }}</h3>
<p>{{ getDate(groupHistory[0].startTime) }}</p>
</ion-label>
<ion-badge color="dark">{{ timeTillRun(groupHistory[0].endTime) }}</ion-badge>
<ion-badge color="dark" v-if="groupHistory[0].endTime">{{ timeTillRun(groupHistory[0].endTime) }}</ion-badge>
</ion-item>
</main>
<aside>
Expand Down

0 comments on commit 176df7a

Please sign in to comment.