Skip to content

Commit 4c5474b

Browse files
committed
Fix lint errors
1 parent cb71178 commit 4c5474b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/backend/routers/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const user = router({
193193
.selectAll()
194194
.executeTakeFirstOrThrow();
195195

196-
if (userId === user_id && dbUser.role !== role) {
196+
if (userId === user_id && dbUser.role !== (role as string)) {
197197
throw new TRPCError({
198198
code: "BAD_REQUEST",
199199
message: "You cannot change your own role",

src/components/design_system/breadcrumbs/Breadcrumbs.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import $breadcrumbs from "./Breadcrumbs.module.css";
77

88
type Student = SelectableForTable<"student">;
99
type Para = SelectableForTable<"user">;
10-
type User = SelectableForTable<"user">;
1110

1211
const BreadcrumbsNav = () => {
1312
const router = useRouter();
@@ -28,7 +27,7 @@ const BreadcrumbsNav = () => {
2827
{ enabled: Boolean(paths[2] && paths[1] === "admin") }
2928
);
3029

31-
const personData: Student | Para | User | undefined = student || para || user;
30+
const personData: Student | Para | undefined = student || para || user;
3231

3332
// 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.
3433
const breadcrumbs = paths.map((path, index) => {

0 commit comments

Comments
 (0)