Skip to content

Commit 22c2ac8

Browse files
authored
Merge pull request #2187 from HarshMN2345/fix-SER-188-Bug-completeness-indicator
2 parents 82f2f7c + 55bc476 commit 22c2ac8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/lib/layout/shell.svelte

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,18 @@
124124
125125
const progressCard = function getProgressCard() {
126126
if (selectedProject && !hasOnboardingDismissed(selectedProject.$id, $user)) {
127+
const { platforms, pingCount } = selectedProject;
128+
let percentage = 33;
129+
130+
if (platforms.length > 0 && pingCount === 0) {
131+
percentage = 66;
132+
} else if (pingCount > 0) {
133+
percentage = 100;
134+
}
135+
127136
return {
128137
title: 'Get started',
129-
percentage: selectedProject && selectedProject.platforms.length ? 100 : 33
138+
percentage
130139
};
131140
}
132141

0 commit comments

Comments
 (0)