aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Feed/Feed.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Feed/Feed.tsx b/src/Feed/Feed.tsx
index 21bda5e..1b2a81e 100644
--- a/src/Feed/Feed.tsx
+++ b/src/Feed/Feed.tsx
@@ -20,9 +20,9 @@ const Feed: React.FC<PropTypes> = ({ page }) => {
const [polls, setPolls] = useState<Poll[]>([]);
const classes = useStyles();
- let endpoint: string;
+ let endpoint = '/polls';
+ // TODO: Make this work
if (page === 'feed') endpoint = '/polls';
- else if (page === 'profiles') endpoint = '/profiles';
useEffect(() => {
get(endpoint).then(response => {