mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Simplify progresscard
This commit is contained in:
@@ -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