Ver Fonte

Update EditHistoryModal, use proper timestamp

Daniel Supernault há 2 anos atrás
pai
commit
2a10809fa3

+ 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>