Clarify logic, add comment

This commit is contained in:
Eric Bailey
2026-07-02 09:59:58 -05:00
parent 0d22614904
commit 590281f44f
2 changed files with 10 additions and 2 deletions
+4
View File
@@ -501,6 +501,10 @@ export function createDeviceSignalsQueryKey({did}: {did: string}) {
*
* Native-only: on web `expo-age-range` returns a misleading default (e.g.
* `{lowerBound: 18}`), so we never call it there — web users fall back to KWS.
*
* If this method throws for whatever reason, we catch and log the error and
* return undefined. The caller should treat undefined as "no device signals
* available" and fall back to KWS.
*/
export async function getDeviceSignals(): Promise<
AgeRange.AgeRangeResponse | undefined