You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since a profile is created each time a user registers, the primary key of these models will be the same for the same user. However, the relevant field is called pk in the User model (Allauth default) and id in the Profile model (custom written model).
The text was updated successfully, but these errors were encountered:
As a Logged-in User,
I want to view a list of my teammates withouth my profile in the list,
so that I do not see superfluous information
Acceptance Criteria
Tasks
import { useCurrentUser } from "../../contexts/CurrentUserContext";
const currentUser = useCurrentUser();
Caution
Deciding to change this means the conditional inside the map has to be re-written to account for
currentUser
not existing.Important
Since a profile is created each time a user registers, the primary key of these models will be the same for the same user. However, the relevant field is called
pk
in theUser
model (Allauth default) andid
in theProfile
model (custom written model).The text was updated successfully, but these errors were encountered: