Call achievement awarding after creating a project
cgen-dd49b9846f8c48deb404c269b5561416
This commit is contained in:
parent
54b80b0992
commit
8fbff6efb1
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ export default function ProjectsNew() {
|
||||||
} as any);
|
} as any);
|
||||||
|
|
||||||
if (project) {
|
if (project) {
|
||||||
|
try {
|
||||||
|
await aethexAchievementService.checkAndAwardProjectAchievements(user.id);
|
||||||
|
} catch {}
|
||||||
aethexToast.success({ title: "Project created", description: "Your project has been created." });
|
aethexToast.success({ title: "Project created", description: "Your project has been created." });
|
||||||
navigate("/dashboard");
|
navigate("/dashboard");
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue