@naniteninja/dashboard-components-lib 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8656,6 +8656,16 @@ function buildAmbiguousLocationText(s) {
8656
8656
  if (typeof count === 'number' && count > 1) {
8657
8657
  return `There are ${count} ${place} locations in that area. Please ask the prospect to specify which one.`;
8658
8658
  }
8659
+ // Nothing found and exactly one found both used to fall through to the generic line below,
8660
+ // which told the matcher the suggestion was "ambiguous" and left them to guess why. Neither
8661
+ // is ambiguity: one means the place is not in the client's area at all, the other means
8662
+ // there is a single result nobody has confirmed is the right one.
8663
+ if (count === 0) {
8664
+ return `No ${place} found in that area. Please ask the prospect to suggest somewhere else.`;
8665
+ }
8666
+ if (count === 1) {
8667
+ return `Only one ${place} found in that area. Please ask the prospect to confirm the exact address.`;
8668
+ }
8659
8669
  return s.ambiguousReason || 'Prospect suggested an ambiguous location. Please ask them to be specific.';
8660
8670
  }
8661
8671
  const FIVE_MINUTES_MS = 5 * 60 * 1000;