We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6d7094 commit 66707caCopy full SHA for 66707ca
1 file changed
front-end/src/components/StartStopBtn.js
@@ -81,7 +81,7 @@ const SimpleModal = forwardRef((props, ref) => {
81
82
const handleAccept = async () => {
83
alert("Accepted!");
84
- await fetch("http://localhost:3001/server/sign-eula", {method: "PUT"})
+ await fetch(`http://${localStorage.getItem("ipAddress")}:${localStorage.getItem("port")}/server/sign-eula`, {method: "PUT"})
85
dialogRef.current?.close();
86
};
87
0 commit comments