Skip to content

Commit

Permalink
Removing urls in AddUser and Login.js
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Mar 2, 2024
1 parent 05f9c9f commit d357b6c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/src/components/AddUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React, { useState } from 'react';
import axios from 'axios';
import { Container, Typography, TextField, Button, Snackbar } from '@mui/material';

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT||'http://localhost:8000';
const apiEndpoint = process.env.REACT_APP_API_ENDPOINT;

const AddUser = () => {
const [username, setUsername] = useState('');
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/components/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const Login = () => {
const [createdAt, setCreatedAt] = useState('');
const [openSnackbar, setOpenSnackbar] = useState(false);

const apiEndpoint = process.env.REACT_APP_API_ENDPOINT||'http://localhost:8000';
const apiEndpoint = process.env.REACT_APP_API_ENDPOINT;

const loginUser = async () => {
try {
Expand Down

0 comments on commit d357b6c

Please sign in to comment.