Skip to content

Commit 55bc476

Browse files
committed
fix:simplified logic
1 parent af5adfd commit 55bc476

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/layout/shell.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,12 @@
124124
125125
const progressCard = function getProgressCard() {
126126
if (selectedProject && !hasOnboardingDismissed(selectedProject.$id, $user)) {
127+
const { platforms, pingCount } = selectedProject;
127128
let percentage = 33;
128129
129-
if (selectedProject.platforms.length > 0 && selectedProject.pingCount === 0) {
130+
if (platforms.length > 0 && pingCount === 0) {
130131
percentage = 66;
131-
} else if (selectedProject.pingCount > 0) {
132+
} else if (pingCount > 0) {
132133
percentage = 100;
133134
}
134135

0 commit comments

Comments
 (0)