Skip to content

Commit

Permalink
attach profile to session on profile create
Browse files Browse the repository at this point in the history
  • Loading branch information
ricvillagrana committed Jun 11, 2024
1 parent 3d760ca commit 537a71b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Misc/Scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function hellotext_script () {
window.Hellotext = Hellotext;

<?php if ($HELLOTEXT_DEV_MODE) { ?>
window.Hellotext.__apiURL = 'http://api.lvh.me:4000/v1/';
window.Hellotext.__apiURL = 'http://api.lvh.me:3000/v1/';
<?php } ?>

window.Hellotext.initialize('<?php echo esc_html(get_option('hellotext_business_id')); ?>');
Expand Down
1 change: 1 addition & 0 deletions src/Services/CreateProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function process () {
if (! $this->verify_if_profile_exists()) {
$this->get_user();
$this->create_hellotext_profile();
$this->attach_profile_to_session();
}

if ($this->session_changed()) {
Expand Down

0 comments on commit 537a71b

Please sign in to comment.