Skip to content

Commit

Permalink
Update page.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
RojhatToptamus committed Jun 23, 2024
1 parent 4b54855 commit fe59031
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/nextjs/app/dashboard/attestations/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use client";
import React, { useState, useEffect } from "react";
import Link from "next/link";
import { fetchAllAttestations, fetchStats, shortAddress } from "~~/utils/utils";
import { fetchAllAttestations, shortAddress } from "~~/utils/utils";
import Modal from "~~/components/Modal";
import CreateAttestationForm from "~~/components/forms/CreateAttestationForm";
const Dashboard = () => {
Expand All @@ -19,9 +19,6 @@ const Dashboard = () => {
const getAttestations = async () => {
try {
const attestationData = await fetchAllAttestations();
const stats = await fetchStats();
setAttestations(attestationData);
setStats(stats);
} catch (error) {
console.error("Error fetching attestations:", error);
}
Expand Down

0 comments on commit fe59031

Please sign in to comment.