Skip to content

Commit 2b00c10

Browse files
Merge pull request #118 from WildCodeSchool/fix_prod
fix prod 4
2 parents 7977c8f + bcaa3e9 commit 2b00c10

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/src/pages/CreateChallengePage/EcogesturesSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function EcogesturesSelect({
9696
<CommandItem
9797
key={eco.id}
9898
value={eco.id.toString()}
99-
onSelect={(currentValue: string) => {
99+
onSelect={(currentValue: string | undefined) => {
100100
if (currentValue) {
101101
setSelectedId(currentValue);
102102
setOpenCombobox(false);

frontend/src/stores/__tests__/authStore.unit.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe("authStore - Unit Tests", () => {
1414
id: 1,
1515
email: "test@example.com",
1616
username: "testuser",
17-
pictureUrl: null,
17+
pictureUrl: "",
1818
};
1919

2020
useAuthStore.getState().setUser(mockUser);
@@ -40,7 +40,7 @@ describe("authStore - Unit Tests", () => {
4040
id: 1,
4141
email: "test@example.com",
4242
username: "testuser",
43-
pictureUrl: null,
43+
pictureUrl: "",
4444
});
4545

4646
// Log out
@@ -70,7 +70,7 @@ describe("authStore - Unit Tests", () => {
7070
id: 1,
7171
email: "test@example.com",
7272
username: "testuser",
73-
pictureUrl: null,
73+
pictureUrl: "",
7474
};
7575
useAuthStore.getState().setUser(mockUser);
7676
useAuthStore.getState().setAuthLoading(false);

0 commit comments

Comments
 (0)