// FIXED: explicit ForbiddenError handling
} catch (err) {
  if (err instanceof ForbiddenError) {
    Alert.alert(
      'Permission Denied',
      'You don’t have permission to delete this listing.',
    );
  } else if (err instanceof ApiError) {
    Alert.alert('Error', 'Could not delete the listing. Please try again.');
  }
}
