Skip to content

Commit

Permalink
release: version 1.1.1
Browse files Browse the repository at this point in the history
### Bug Fixes
- **Welcome Notice not redirecting**: Fixes an issue with Welcome Notice not redirecting straightaway to Onboarding.
  • Loading branch information
HardeepAsrani authored Dec 19, 2023
2 parents cc11131 + 7053721 commit ffcb6e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions assets/js/src/welcome-notice.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function handleWelcomeNotice( $ ) {
installSpinner.addClass( 'dashicons-yes' );
installText.text( done );
setTimeout( hideAndRemoveNotice, 1500 );
window.location.href = onboardingUrl;
};

$( installBtn ).on( 'click', async () => {
Expand Down
2 changes: 1 addition & 1 deletion inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ffcb6e9

Please sign in to comment.