Skip to content

Commit

Permalink
patch for session title
Browse files Browse the repository at this point in the history
  • Loading branch information
cweitat committed Sep 8, 2023
1 parent 88be7ac commit 343558b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/stores/attendees.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const useAttendeesStore = defineStore('attendees', () => {
route += `email=${value}`
}
try {
const res = await apiStore.get(true, `events/${eventId}/attendees/search?${route}`)
const res = await apiStore.get(true, `events/${eventId}/attendees/search?sort=firstname&${route}`)
attendees.value = res.attendees.map((attendee) => ({
id: attendee.id,
name: attendee.firstname + ' ' + attendee.lastname,
Expand Down
1 change: 1 addition & 0 deletions src/stores/processRegistration.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const useProcessRegistrationStore = defineStore('processRegistration', ()
attendeesStore.attendees[attendeeIndex].checkedIn = true
}
}
notificationStore.addNotification(['Success', 'Checked In'], 'success')
// end
} else {
notificationStore.addNotification(['Error', 'Already checked in'], 'error')
Expand Down
2 changes: 1 addition & 1 deletion src/stores/sessions.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useSessionsStore = defineStore('sessions', () => {
})

const formattedSessionDetails = computed(() => {
if (currentSession.value === null) {
if (!currentSession.value) {
return 'No Session'
}

Expand Down

0 comments on commit 343558b

Please sign in to comment.