mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix:simplified logic
This commit is contained in:
1 parent
af5adfd29f
commit
55bc476455
1 file changed
+3
-2
@@ -124,11 +124,12 @@
|
||||
|
||||
const progressCard = function getProgressCard() {
|
||||
if (selectedProject && !hasOnboardingDismissed(selectedProject.$id, $user)) {
|
||||
const { platforms, pingCount } = selectedProject;
|
||||
let percentage = 33;
|
||||
|
||||
if (selectedProject.platforms.length > 0 && selectedProject.pingCount === 0) {
|
||||
if (platforms.length > 0 && pingCount === 0) {
|
||||
percentage = 66;
|
||||
} else if (selectedProject.pingCount > 0) {
|
||||
} else if (pingCount > 0) {
|
||||
percentage = 100;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user