fix:simplified logic

This commit is contained in:
Harsh Mahajan
2025-08-06 12:33:56 +05:30
parent af5adfd29f
commit 55bc476455
+3 -2
View File
@@ -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;
}