aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/pages
diff options
context:
space:
mode:
authorArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-10-22 13:32:47 +0300
committerArda Serdar Pektezol <1669855+pektezol@users.noreply.github.com>2024-10-22 13:32:47 +0300
commit0f81fafe764f6fc4b8f64e184520b5ea0a26a0d0 (patch)
tree7b4b5bf4cb36da07aa77ed0ae86399b88385805c /frontend/src/pages
parentfrontend: fix message async hook (diff)
downloadlphub-0f81fafe764f6fc4b8f64e184520b5ea0a26a0d0.tar.gz
lphub-0f81fafe764f6fc4b8f64e184520b5ea0a26a0d0.tar.bz2
lphub-0f81fafe764f6fc4b8f64e184520b5ea0a26a0d0.zip
frontend: update profile on delete run
Diffstat (limited to 'frontend/src/pages')
-rw-r--r--frontend/src/pages/Profile.tsx1
1 files changed, 1 insertions, 0 deletions
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
72 const api_success = await API.delete_map_record(token!, map_id, record_id); 72 const api_success = await API.delete_map_record(token!, map_id, record_id);
73 if (api_success) { 73 if (api_success) {
74 await message("Delete Record", "Successfully deleted record."); 74 await message("Delete Record", "Successfully deleted record.");
75 onDeleteRecord();
75 } else { 76 } else {
76 await message("Delete Record", "Could not delete record."); 77 await message("Delete Record", "Could not delete record.");
77 } 78 }