Fixed country show fields..

This commit is contained in:
Cüneyt Şentürk
2023-06-01 16:42:11 +03:00
parent 40b294480a
commit b7fda70b98
4 changed files with 5 additions and 5 deletions

View File

@ -37,7 +37,7 @@ class Country extends Component
*/
public function render()
{
if (! empty($this->code) && in_array($this->code, trans('countries'))) {
if (! empty($this->code) && array_key_exists($this->code, trans('countries'))) {
$this->country = trans('countries.' . $this->code);
}