Skip to content

Commit bb342dd

Browse files
committed
fix: add default company color
1 parent 9caf4a8 commit bb342dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Models/Foundation/Main/Companies/Company.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,13 @@ public function setAdminEmail(string $admin_email): void
532532
$this->admin_email = $admin_email;
533533
}
534534

535+
const DefaultColor = 'C34431';
535536
/**
536537
* @return string
537538
*/
538539
public function getColor(): ?string
539540
{
540-
return $this->color;
541+
return empty($this->color) ? self::DefaultColor : $this->color;
541542
}
542543

543544
/**

0 commit comments

Comments
 (0)