Skip to content

Commit

Permalink
removed hardcoded api url
Browse files Browse the repository at this point in the history
  • Loading branch information
rasikaghadge committed May 26, 2024
1 parent 6cd7b80 commit 9762a55
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from "react";
import "./EvaluationPopup.css";
import { useDispatch } from "react-redux";
import { changeInterviewHiringStatus } from "../../actions/interviews";
import { AI_URL } from "../../api/index";

// Function to parse the evaluation text
const parseEvaluationText = (text) => {
Expand Down Expand Up @@ -31,8 +32,7 @@ const EvaluationPopup = ({ evaluationData, onClose, interviewDetails }) => {
setButtonsDisabled(true);

// send email to the candidate
console.log("mail status");
fetch("http://localhost:8000/mail/", {
fetch(AI_URL + "/mail/", {
method: "POST",
headers: {
"Content-Type": "application/json",
Expand Down

0 comments on commit 9762a55

Please sign in to comment.