DnD-Montreal/session-tome

Character doesn't show when user registers for more than 1 session per event

m-triassi opened this issue · 0 comments

Description

When a user attempts to register for an event, if they try to register for multiple sessions / tables for the same event, with different characters, the interface will only show their chosen character next to the first event they signed up for.

Expected Behavior

Users should be able to see the character they've signed up for, for each session in a given event.

Actual Behavior

Only 1 session per event shows the user's character as registered.

Steps to Reproduce

  1. Login to a user with multiple characters
  2. Navigate to an event with multiple sessions
  3. Register one of your characters to a session in the event
  4. Attempt to register a different character to a different session in the same event
  5. Observer that the UI does not reflect the chose character as registered for that event.

Possible Fix

I have not inspected the code yet, but i suspect that either we stop printing character names after we see the first one, or the relationship is not returning more than 1 item, ie: hasOne vs hasMany.