Skip to content

Commit

Permalink
toggle search mode based on visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeKarow committed Jul 16, 2024
1 parent dd7f9b4 commit e7bcd0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const AddressAutocomplete = <T extends AddressSchema = AddressSchema>({
)

const { data: autoCompleteSearch } = api.geo.autocomplete.useQuery(
{ search, fullAddress: true },
{ search, fullAddress: addressVisibility === AddressVisibility.FULL },
{
enabled: search !== '',
refetchOnWindowFocus: false,
Expand Down

0 comments on commit e7bcd0b

Please sign in to comment.