MOB-1554: also set identified: false

This commit is contained in:
sepeterson committed 2026-07-22 21:29:05 -05:00
1 parent 21ce027695
commit 087326fa4e
2 files changed
+3

No files matched your search

@@ -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;
@@ -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 );
} );