Skip to content

Commit

Permalink
Merge pull request #5 from savannabits/development
Browse files Browse the repository at this point in the history
Default Team Adjustment
  • Loading branch information
coolsam726 authored Oct 19, 2023
2 parents ebbec70 + d8d8de0 commit 70431ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function team(string $code): ?Team
if (!function_exists('Savannabits\Saas\current_team')) {
function current_team(): ?Team
{
return Auth::check() ? Auth::user()->team : null;
return Auth::check() ? Auth::user()->team : \Savannabits\Saas\team('DEFAULT');
}
}

Expand Down

0 comments on commit 70431ee

Please sign in to comment.