Skip to content
Snippets Groups Projects
Commit 3ca89f37 authored by Jakub Lachór's avatar Jakub Lachór
Browse files

Update feed age in witnesses table

parent 7551681e
No related branches found
No related tags found
1 merge request!364Update feed age in witnesses table
Pipeline #99511 failed
......@@ -15,6 +15,7 @@ import useWitnesses from "@/api/common/useWitnesses";
import { config } from "@/Config";
import { cn, formatNumber, formatPercent } from "@/lib/utils";
import Head from "next/head";
import moment from "moment";
export default function Witnesses() {
const [voterAccount, setVoterAccount] = useState<string>("");
......@@ -152,8 +153,8 @@ export default function Witnesses() {
: "--"}
</TableCell>
<TableCell>
{singleWitness.feed_age
? singleWitness.feed_age.split(".")[0]
{singleWitness.feed_updated_at
? moment(singleWitness.feed_updated_at).fromNow()
: "--"}
</TableCell>
<TableCell>{singleWitness.version}</TableCell>
......
......@@ -381,6 +381,7 @@ declare module Hive {
price_feed: number;
bias: number;
feed_age: string;
feed_updated_at: Date;
block_size: number;
signing_key: string;
version: string;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment