diff --git a/pkg/queries/user.go b/pkg/queries/user.go index deac4fe..d44b14c 100644 --- a/pkg/queries/user.go +++ b/pkg/queries/user.go @@ -360,7 +360,7 @@ func GetProfile(db *gorm.DB, queriedUserID uint, queryingUserID uint) (models.Pr // As written in the previous commit, administrators do not // have access to the invitation code of users other than themselves. displayInvitationCode := queryingUserID == queriedUserID - var displayReward bool = queryingUserID == queriedUserID + displayReward := queryingUserID == queriedUserID if queryingUserID != 0 && queryingUserID != queriedUserID { queryingUser, err := GetUserByID(db, queryingUserID)