Skip to content

Commit dff55d1

Browse files
committed
fix dashboard widget
1 parent e13c00d commit dff55d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

views/dashboard-widgets/score.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
contentPadding="var(--prpl-padding)"
1919
marginBottom="0"
2020
data-max="<?php echo (int) Monthly::TARGET_POINTS; ?>"
21-
data-value="<?php echo (float) \progress_planner()->get_admin__widgets__suggested_tasks()->get_score(); ?>"
21+
data-value="<?php echo (float) \progress_planner()->get_admin__widgets__suggested_tasks()->get_score()['target_score']; ?>"
2222
data-badge-id="<?php echo esc_attr( Monthly::get_badge_id_from_date( new \DateTime() ) ); ?>"
2323
>
24-
<progress max="<?php echo (int) Monthly::TARGET_POINTS; ?>" value="<?php echo (float) \progress_planner()->get_admin__widgets__suggested_tasks()->get_score(); ?>">
24+
<progress max="<?php echo (int) Monthly::TARGET_POINTS; ?>" value="<?php echo (float) \progress_planner()->get_admin__widgets__suggested_tasks()->get_score()['target_score']; ?>">
2525
<prpl-badge
2626
complete="true"
2727
badge-id="<?php echo esc_attr( Monthly::get_badge_id_from_date( new \DateTime() ) ); ?>"

0 commit comments

Comments
 (0)