Skip to content

Commit

Permalink
Attendee Survey: Use ceil to limit improve response rate ui.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenDufresne committed Oct 11, 2023
1 parent 9cceeb3 commit 578140c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function get_feedback_details() {
'responses_url' => admin_url( sprintf( 'edit.php?post_type=feedback&jetpack_form_parent_id=%s', get_page_id() ) ),
'sent' => $sent,
'responses' => $responses,
'rate' => 0 !== $sent ? ( $responses / $sent ) * 100 . '%' : '',
'rate' => 0 !== $sent ? ceil( ( $responses / $sent ) * 100 ) . '%' : '',
);

// Restore the original site context.
Expand Down

0 comments on commit 578140c

Please sign in to comment.