Skip to content

Commit 11d4ce0

Browse files
authored
Fix editing café opening hours (#1046)
* Improve error message * Fix form name param
1 parent 8865bc8 commit 11d4ce0

2 files changed

Lines changed: 9 additions & 3 deletions

File tree

src/routes/(app)/committees/cafe/+page.server.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@ export const actions = {
4040
markdownSv,
4141
markdownEn,
4242
});
43+
44+
return message(form, {
45+
message: m.committees_committeeUpdated(),
46+
type: "success",
47+
});
4348
}
49+
4450
return message(form, {
45-
message: m.committees_committeeUpdated(),
46-
type: "success",
51+
message: m.committees_errors_fetchMarkdown(),
52+
type: "error",
4753
});
4854
},
4955
};

src/routes/(app)/committees/cafe/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<input
6262
type="text"
6363
class="input input-bordered font-normal"
64-
name="markdown"
64+
name="markdownSv"
6565
value={openingHour.markdown}
6666
size="8"
6767
/>

0 commit comments

Comments
 (0)