Skip to content

Commit

Permalink
Merge pull request #137 from openstad/bugfix/toast-for-failing-when-c…
Browse files Browse the repository at this point in the history
…reating-tags

Juiste toast bij fout aanmaken tags
  • Loading branch information
BartWtje authored Jan 22, 2024
2 parents 436e84f + f7a2574 commit 3fddf1a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function ProjectTagCreate() {

async function onSubmit(values: z.infer<typeof formSchema>) {
const tags = await createTag(values.name, values.type, values.seqnr);
if (tags) {
if (tags && tags.status === 200) {
toast.success('Tag aangemaakt!');
router.push(`/projects/${project}/tags`);
} else {
Expand Down

0 comments on commit 3fddf1a

Please sign in to comment.