diff --git a/assets/js/src/welcome-notice.js b/assets/js/src/welcome-notice.js index b635831..42a8511 100644 --- a/assets/js/src/welcome-notice.js +++ b/assets/js/src/welcome-notice.js @@ -42,6 +42,7 @@ function handleWelcomeNotice( $ ) { installSpinner.addClass( 'dashicons-yes' ); installText.text( done ); setTimeout( hideAndRemoveNotice, 1500 ); + window.location.href = onboardingUrl; }; $( installBtn ).on( 'click', async () => { diff --git a/inc/Admin.php b/inc/Admin.php index c1f30bf..7962c35 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -335,7 +335,7 @@ public function add_nps_form() { * @return int */ public static function convert_to_category( $number, $scale = 1 ) { - $normalized_number = round( $number / $scale ); + $normalized_number = intval( round( $number / $scale ) ); if ( 0 === $normalized_number || 1 === $normalized_number ) { return 0;