Skip to content

Commit 66707ca

Browse files
committed
fix(frontend): Remove hardcoded ip and port values for eula API call
1 parent c6d7094 commit 66707ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

front-end/src/components/StartStopBtn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ const SimpleModal = forwardRef((props, ref) => {
8181

8282
const handleAccept = async () => {
8383
alert("Accepted!");
84-
await fetch("http://localhost:3001/server/sign-eula", {method: "PUT"})
84+
await fetch(`http://${localStorage.getItem("ipAddress")}:${localStorage.getItem("port")}/server/sign-eula`, {method: "PUT"})
8585
dialogRef.current?.close();
8686
};
8787

0 commit comments

Comments
 (0)