File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
components/design_system/breadcrumbs Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -193,7 +193,7 @@ export const user = router({
193
193
. selectAll ( )
194
194
. executeTakeFirstOrThrow ( ) ;
195
195
196
- if ( userId === user_id && dbUser . role !== role ) {
196
+ if ( userId === user_id && dbUser . role !== ( role as string ) ) {
197
197
throw new TRPCError ( {
198
198
code : "BAD_REQUEST" ,
199
199
message : "You cannot change your own role" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import $breadcrumbs from "./Breadcrumbs.module.css";
7
7
8
8
type Student = SelectableForTable < "student" > ;
9
9
type Para = SelectableForTable < "user" > ;
10
- type User = SelectableForTable < "user" > ;
11
10
12
11
const BreadcrumbsNav = ( ) => {
13
12
const router = useRouter ( ) ;
@@ -28,7 +27,7 @@ const BreadcrumbsNav = () => {
28
27
{ enabled : Boolean ( paths [ 2 ] && paths [ 1 ] === "admin" ) }
29
28
) ;
30
29
31
- const personData : Student | Para | User | undefined = student || para || user ;
30
+ const personData : Student | Para | undefined = student || para || user ;
32
31
33
32
// An array of breadcrumbs fixed to students/staff as the first index. This will be modified depending on how the address bar will be displayed.
34
33
const breadcrumbs = paths . map ( ( path , index ) => {
You can’t perform that action at this time.
0 commit comments