Skip to content

Commit

Permalink
Show "-" if the device family is "Other"
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Mar 27, 2020
1 parent 4581206 commit 5262e64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core-bundle/src/Entity/TrustedDevice.php
Expand Up @@ -148,6 +148,10 @@ public function setOsFamily(?string $osFamily): self

public function getDeviceFamily(): ?string
{
if ('Other' === $this->deviceFamily) {
return '-';
}

return $this->deviceFamily;
}

Expand Down

0 comments on commit 5262e64

Please sign in to comment.