From 5374374cb39b5318c169afd4d08d92dc8043f906 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Mon, 29 Jun 2026 18:06:18 -0500 Subject: [PATCH] Open KWS dialog from device-verification fallback link Co-Authored-By: Claude Opus 4.8 --- .../components/NoAccessScreen.tsx | 36 +++++++++++++++++-- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/src/ageAssurance/components/NoAccessScreen.tsx b/src/ageAssurance/components/NoAccessScreen.tsx index 91f63f4da4..1d65031b5b 100644 --- a/src/ageAssurance/components/NoAccessScreen.tsx +++ b/src/ageAssurance/components/NoAccessScreen.tsx @@ -329,6 +329,8 @@ function AccessSection() { const diff = lastInitiatedAt ? dateDiff(lastInitiatedAt, new Date(), 'down') : null + const allowsDeviceVerification = + region && regionAllowsDeviceVerification(region) const [isVerifyingDevice, setIsVerifyingDevice] = useState(false) @@ -349,7 +351,7 @@ function AccessSection() { * its own errors and returns undefined (e.g. on web or failure), which also * routes us to the fallback. */ - if (region && regionAllowsDeviceVerification(region)) { + if (allowsDeviceVerification) { const did = currentAccount?.did // Show a loading state while the OS age prompt is up. setIsVerifyingDevice(true) @@ -406,7 +408,13 @@ function AccessSection() { <> + {allowsDeviceVerification && ( + + + Sharing your age data uses information stored on your + device, and will therefore only work on this device. + Alternatively,{' '} + { + openKwsDialog() + })}> + you can use our trusted partner, KWS + + , to complete your verification and enable access on all + platforms. + + + )} + {lastInitiatedAt && timeAgo && diff ? ( - Age assurance only takes a few minutes + Age assurance only takes a few minutes. )}