From 1393d0c4953875977dfe930c8f21680653521fb6 Mon Sep 17 00:00:00 2001 From: Geoff Kendal Date: Tue, 6 Feb 2024 14:45:12 +0000 Subject: [PATCH] Fix bug - UserView Unable to delete --- frontend/src/UserView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/UserView.js b/frontend/src/UserView.js index 979ad05..937807c 100644 --- a/frontend/src/UserView.js +++ b/frontend/src/UserView.js @@ -51,7 +51,7 @@ const UserView = ({ groupCode }) => { const handleRemoveTicket = async (ticketId) => { try { - const response = await fetch(`$window.config.apiUrl}/ticket?ticket_id=${ticketId}`, { + const response = await fetch(`${window.config.apiUrl}/ticket?ticket_id=${ticketId}`, { method: 'DELETE', headers: { 'Authorization': groupCode,