Skip to content

Commit

Permalink
fix: Unicode character error
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Jan 2, 2024
1 parent 2c42769 commit a8956f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getDisplayNameAttribute($value)
return $displayName[auth('api')->user()->language] ?? $displayName[app()->getLocale()] ?? $this->attributes['display_name'];
}

return str_replace('"', '', $this->attributes['display_name']);
return str_replace('"', '', json_decode($this->attributes['display_name']) ?? $this->attributes['display_name']);
}

/**
Expand Down

0 comments on commit a8956f3

Please sign in to comment.