Fix unsafe frontend casts and mark Task 18 done
This commit is contained in:
@@ -73,8 +73,7 @@ export function useDashboardCountryData(
|
||||
if (controller.signal.aborted) return;
|
||||
setCountries(data.countries);
|
||||
setCountryNames(data.country_names);
|
||||
// MapBanItem and DashboardBanItem are structurally identical.
|
||||
setBans(data.bans as DashboardBanItem[]);
|
||||
setBans(data.bans);
|
||||
setTotal(data.total);
|
||||
})
|
||||
.catch((err: unknown) => {
|
||||
|
||||
Reference in New Issue
Block a user