Skip to content

Commit 4328d5e

Browse files
committed
fix: cancel button in consent screen
1 parent 66a1671 commit 4328d5e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pages/oauth2-consent.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,13 @@ function ConsentForm({ consentInfo, setActiveWindow }: { consentInfo: OAuth2Cons
219219
href={consentInfo.cancelUri}
220220
disabled={authorizeLoading}
221221
loading={cancelLoading}
222-
onFollow={() => setCancelLoading(true)}
222+
onFollow={(e) => {
223+
const { href } = e.detail;
224+
if (href) {
225+
setCancelLoading(true);
226+
window.location.href = href;
227+
}
228+
}}
223229
>Cancel</Button>
224230

225231
<Button

0 commit comments

Comments
 (0)