Skip to content

Commit

Permalink
Fix bug preventing user data from being saved
Browse files Browse the repository at this point in the history
  • Loading branch information
tarecord committed Oct 3, 2023
1 parent 8e6be5a commit d78f38a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Telemetry/Telemetry/Telemetry.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public function register_user( string $stellar_slug = '', string $opt_in_text =
$user_details = $this->get_user_details( $stellar_slug, $opt_in_text );

try {
// Store the user info in the options table.
update_option( Status::OPTION_NAME_USER_INFO, $user_details, false );

$this->send( $user_details, Config::get_server_url() . '/opt-in', false );
} catch ( \Error $e ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch
// We don't want to throw errors if the server fails.
Expand Down

0 comments on commit d78f38a

Please sign in to comment.