Skip to content

Conversation

@KriseevM
Copy link
Contributor

resolves #391

@KriseevM KriseevM marked this pull request as ready for review October 2, 2024 17:42
@KriseevM KriseevM requested a review from Namxobick October 2, 2024 17:43
builder: (p0) => const CommentsPage(),
isDisabled: false,
userTypes: [StudentData, EmployeeData],
userTypes: [StudentData, EmployeeData, UserData],
Copy link
Member

@Namxobick Namxobick Oct 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

мб просто тогда оставить UserData? Или ты пока оставил StudentData и EmployeeData с надеждой, что в какой-то момент мы начнём обрабатывать все типы пользователей =)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

У нас нет рефлексии и там идёт сравнение через ==
Я не уверен на 100%, но мне кажется, при таком сравнении будет StudentData != UserData и ни у кого роут не отобразится

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

да, всё как я описал

@KriseevM KriseevM merged commit d347c08 into develop Oct 2, 2024
@KriseevM KriseevM deleted the feauture/391 branch October 2, 2024 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Переверстать вкладку настройки и добавить возможность выбрать стартовую вкладку

4 participants