Skip to content

Commit

Permalink
fix api nft entity empty tags
Browse files Browse the repository at this point in the history
  • Loading branch information
michavie committed Aug 16, 2022
1 parent 6d983c0 commit 9a7aa16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Entities/Nft.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
public function getTags(): array
{
if (!empty($this->tags)) {
return $this->tags;
return array_filter($this->tags);
}

preg_match('/tags:(?<tags>[\w\s\,]*)/', base64_decode($this->attributes), $matches);
Expand Down

0 comments on commit 9a7aa16

Please sign in to comment.