Skip to content

Commit

Permalink
A better fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Koen Eelen committed Jul 9, 2024
1 parent f8a19ee commit 517cc00
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Domain/Integrations/Models/IntegrationModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ final class IntegrationModel extends UuidModel
protected $attributes = [
'status' => IntegrationStatus::Draft,
'partner_status' => IntegrationPartnerStatus::THIRD_PARTY,
'type' => IntegrationType::UiTPAS->value,
];

public function canBeActivated(): bool
Expand Down Expand Up @@ -98,7 +97,7 @@ public function isWidgets(): bool

public function isUiTPAS(): bool
{
return $this->type === IntegrationType::UiTPAS->value;
return $this->type === IntegrationType::UiTPAS->value || $this->type === null;
}

protected static function booted(): void
Expand Down

0 comments on commit 517cc00

Please sign in to comment.