Skip to content

Commit

Permalink
fix: my shares doesn't make an api request
Browse files Browse the repository at this point in the history
  • Loading branch information
stonith404 committed Oct 14, 2022
1 parent a50d16d commit 247ce92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
backend/dist/
backend/node_modules/
backend/data

frontend/node_modules/
frontend/.next/
frontend/dist/

**/.git/
8 changes: 4 additions & 4 deletions frontend/src/pages/account/shares.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useModals } from "@mantine/modals";
import { NextLink } from "@mantine/next";
import moment from "moment";
import { useRouter } from "next/router";
import { useState } from "react";
import { useEffect, useState } from "react";
import { Link, Trash } from "tabler-icons-react";
import Meta from "../../components/Meta";
import useUser from "../../hooks/user.hook";
Expand All @@ -31,9 +31,9 @@ const MyShares = () => {

const [shares, setShares] = useState<MyShare[]>();

// useEffect(() => {
// shareService.getMyShares().then((shares) => setShares(shares));
// }, []);
useEffect(() => {
shareService.getMyShares().then((shares) => setShares(shares));
}, []);

if (!user) {
router.replace("/");
Expand Down

0 comments on commit 247ce92

Please sign in to comment.