We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 82f2f7c + 55bc476 commit 22c2ac8Copy full SHA for 22c2ac8
src/lib/layout/shell.svelte
@@ -124,9 +124,18 @@
124
125
const progressCard = function getProgressCard() {
126
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
136
return {
137
title: 'Get started',
- percentage: selectedProject && selectedProject.platforms.length ? 100 : 33
138
+ percentage
139
};
140
}
141
0 commit comments