# Animal portraits are not displayed in the unit frame

**URL:** <https://discourse.stonehearth.net/t/animal-portraits-are-not-displayed-in-the-unit-frame/27842>\
**Category:** Bug Reports\
**Tags:** ui, a20r693\
**Created:** [January 15, 2017, 12:10pm UTC](https://discourse.stonehearth.net/t/animal-portraits-are-not-displayed-in-the-unit-frame/27842 "2017-01-15T12:10:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![illdred](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/illdred/32/51973_2.png) [@illdred](https://discourse.stonehearth.net/u/illdred)\
**Post date:** [January 15, 2017, 12:10pm UTC](https://discourse.stonehearth.net/t/animal-portraits-are-not-displayed-in-the-unit-frame/27842/1 "2017-01-15T12:10:12Z")

</div>

**Summary:** When selecting a wild animal, such as rabbit or fox, the animal’s portrait is not displayed in the unit frame.

**Steps to reproduce:**

1. Find an animal in the wild
2. Click on the animal
3. Observe the unit frame in bottom left corner of screen

**Expected Results:**  
The animal’s portrait to be shown along with its name and description.

**Actual Results:**  
Only the name and description of the animal are shown.

**Notes:**  
It looks like the problem is located in the function `_hasPortrait()` in the file `Stonehearth\mods\stonehearth\ui\game\unit_frame\unit_frame.js`

There is no code path which is designed to return `true` for wild animals:

```javascript
   _hasPortrait: function() {
      if (this.get('model.stonehearth:job')) {
         return true;
      }
      //Parties have icons too
      if (this.get('model.stonehearth:party')) {
         return true;
      }
      var isPet = this.get('model.stonehearth:pet');

      if (isPet && isPet.is_pet) {
         return true;
      }
      return false;
   }

```

I hacked the above JS a bit and could get a wild rabbit to show a portrait ^.^

**Attachments:**

**Version Number and Mods in use:**  
Alpha 20, release-693

**System Information:**

---

<div class="post-metadata">

**Author:** ![coasterspaul](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/coasterspaul/32/47876_2.png) [@coasterspaul](https://discourse.stonehearth.net/u/coasterspaul)\
**Post date:** [January 16, 2017, 3:37pm UTC](https://discourse.stonehearth.net/t/animal-portraits-are-not-displayed-in-the-unit-frame/27842/2 "2017-01-16T15:37:46Z")

</div>

Radiant needs to get rabbit portraits in the game immediately 😛

It’s just a little thing, and they may actually not want it for a reason, but I for one would like to see unit frame portraits of _all the widdle aminals_ 😍.
