mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
Simplify progresscard
This commit is contained in:
1 parent
4b952b0e27
commit
51793ce089
1 file changed
+4
-11
@@ -84,17 +84,10 @@
|
||||
if (selectedProject) {
|
||||
const currentProject = projects.find((project) => project.$id === selectedProject.$id);
|
||||
|
||||
if (currentProject && currentProject.platforms.length === 0) {
|
||||
return {
|
||||
title: 'Get started',
|
||||
percentage: 33
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
title: 'Get started',
|
||||
percentage: 100
|
||||
};
|
||||
}
|
||||
return {
|
||||
title: 'Get started',
|
||||
percentage: currentProject && currentProject.platforms.length ? 33 : 100
|
||||
};
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
||||
Reference in new issue
Block a user