From 0f81fafe764f6fc4b8f64e184520b5ea0a26a0d0 Mon Sep 17 00:00:00 2001
From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>
Date: Tue, 22 Oct 2024 13:32:47 +0300
Subject: frontend: update profile on delete run

---
 frontend/src/pages/Profile.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'frontend/src/pages/Profile.tsx')

diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx
index 05f372e..5d1c75d 100644
--- a/frontend/src/pages/Profile.tsx
+++ b/frontend/src/pages/Profile.tsx
@@ -72,6 +72,7 @@ const Profile: React.FC<ProfileProps> = ({ profile, token, gameData, onDeleteRec
     const api_success = await API.delete_map_record(token!, map_id, record_id);
     if (api_success) {
       await message("Delete Record", "Successfully deleted record.");
+      onDeleteRecord();
     } else {
       await message("Delete Record", "Could not delete record.");
     }
-- 
cgit v1.2.3

