Browse Source

fix: fixed issue with banned view

Kristian Vos 5 years ago
parent
commit
b03e90c6eb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      frontend/components/pages/Banned.vue

+ 3 - 1
frontend/components/pages/Banned.vue

@@ -4,7 +4,9 @@
 		<i class="material-icons">not_interested</i>
 		<h4>
 			You are banned for
-			<strong>{{ formatDistance(ban.expiresAt, Date.now()) }}</strong>
+			<strong>{{
+				formatDistance(new Date(ban.expiresAt), Date.now())
+			}}</strong>
 		</h4>
 		<h5 class="reason">
 			<strong>Reason: </strong>