@@ -22,16 +35,26 @@ export default function ResultsFeature() {
title={"Election results"}
subtitle={'This page displays the election results'}
>
- {/*
- Election starts: {start_time}
- Election ends: {end_time}
-
*/}
- {/*
*/}
-
+ {electionHasFinished ? (
+
+ ) : (
+
+
+ The election is still taking place. Please come back after the election has finished.
+
+
+ )}
) : (
diff --git a/src/utils/getUnixInDate.ts b/src/utils/getUnixInDate.ts
index 95479da..3d9dc9b 100644
--- a/src/utils/getUnixInDate.ts
+++ b/src/utils/getUnixInDate.ts
@@ -1,3 +1,3 @@
-export default function getUnixInDate(timestamp: number) {
+export default function getUnixInDate(timestamp: number): Date {
return new Date(timestamp * 1000)
}
\ No newline at end of file