Преглед изворни кода

Update EditHistoryModal, use proper timestamp

Daniel Supernault пре 2 година
родитељ
комит
2a10809fa3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      resources/assets/components/partials/post/EditHistoryModal.vue

+ 1 - 1
resources/assets/components/partials/post/EditHistoryModal.vue

@@ -39,7 +39,7 @@
 									<span class="font-weight-bold">{{ allHistory[0].account.username }}</span>
 								</div>
 
-								<div>{{ historyIndex == (allHistory.length - 1) ? 'created' : 'edited' }} {{ formatTime(allHistory[allHistory.length - 1].created_at) }}</div>
+								<div>{{ historyIndex == (allHistory.length - 1) ? 'created' : 'edited' }} {{ formatTime(allHistory[historyIndex].created_at) }}</div>
 							</div>
 						</div>