MOB-1554: also set identified: false

This commit is contained in:
sepeterson
2026-07-22 21:29:05 -05:00
parent 21ce027695
commit 087326fa4e
2 changed files with 3 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ export interface ExploreV2QueryParams {
radius?: number;
place_id?: number;
verifiable?: boolean;
identified?: boolean;
}
export interface NearbyCoords {
@@ -55,6 +56,7 @@ const buildExploreV2QueryParams = (
break;
case "unknown":
params.iconic_taxa = ["unknown"];
params.identified = false;
break;
default:
break;

View File

@@ -56,6 +56,7 @@ describe( "buildExploreV2QueryParams", ( ) => {
};
const params = buildExploreV2QueryParams( state );
expect( params.iconic_taxa ).toEqual( ["unknown"] );
expect( params.identified ).toBe( false );
expect( params.taxon_id ).toBeUndefined( );
expect( params.verifiable ).toBe( true );
} );