Skip to content

Commit

Permalink
fix: make 0 yo age render as 0
Browse files Browse the repository at this point in the history
  • Loading branch information
abdabdii committed Mar 9, 2024
1 parent 763957f commit d1bf15f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/Shared/Modules/FeedItems/GenericAction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<InertiaLink :href="data.url" class="text-gray-800 hover:underline dark:text-gray-200">{{
data.name
}}</InertiaLink>
<span v-if="data.age" class="text-gray-500">{{ data.age }}</span>
<span v-if="data.age || data.age === 0" class="text-gray-500">{{ data.age }}</span>
<span v-else class="text-xs text-gray-500">{{ $t('Unknown age') }}</span>
</div>
</div>
Expand Down

0 comments on commit d1bf15f

Please sign in to comment.