fix: Mobile QA — manual tasks + remittance review (FIBEROPS-207-208)
- manual-tasks/[id].tsx: use r.data?.data ?? r.data for detail query to handle API response wrapper envelope, matching list screen pattern - remittances/[id].tsx: same fix — detail query now unwraps correctly - services/api.ts: use STORAGE_KEYS.TOKEN constant instead of hardcoded string literals in SecureStore calls
This commit is contained in:
@@ -25,7 +25,7 @@ export default function RemittanceDetailScreen() {
|
||||
|
||||
const { data, isLoading } = useQuery({
|
||||
queryKey: ['remittance', id],
|
||||
queryFn: () => api.get(`/api/v1/remittances/${id}`).then(r => r.data),
|
||||
queryFn: () => api.get(`/api/v1/remittances/${id}`).then(r => r.data?.data ?? r.data),
|
||||
});
|
||||
|
||||
if (isLoading) {
|
||||
|
||||
Reference in New Issue
Block a user