Rename device-signals debug flag to useMockDeviceSignalsAPIResponse
Invert the flag's polarity and name so it reads like the other "enable" booleans in the debug module: useMockDeviceSignalsAPIResponse defaults to true (mock the native response), set false to hit the real API. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -503,7 +503,7 @@ export function createDeviceSignalsQueryKey({did}: {did: string}) {
|
||||
export async function getDeviceSignals(): Promise<
|
||||
AgeRange.AgeRangeResponse | undefined
|
||||
> {
|
||||
if (debug.enabled && !debug.useRealDeviceSignalsAPI)
|
||||
if (debug.enabled && debug.useMockDeviceSignalsAPIResponse)
|
||||
return debug.resolve(debug.deviceSignals)
|
||||
if (!IS_NATIVE) return undefined
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user