Skip to content

Commit

Permalink
feat: update descriptions for invalid api tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
its-felix committed Jul 26, 2024
1 parent 69686a3 commit a81f0dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/oauth2-consent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ function buildOptions(consentInfo: OAuth2ConsentInfo) {
};

if (!gw2ApiToken.isValid) {
option.description = 'Invalid: Please update the API Token of this account';
option.description = 'Invalid: Please update the API Token for this account';
invalidOptions.push(option);
} else if (requestedVerifiedScope && !gw2ApiToken.isVerified) {
option.description = 'Unverified: This account may be rejected by the application';
Expand All @@ -254,7 +254,7 @@ function buildOptions(consentInfo: OAuth2ConsentInfo) {
insufficientOptions.push({
value: gw2ApiToken.gw2AccountId,
label: gw2ApiToken.displayName,
description: 'The API Token for this account appears to be invalid',
description: 'The API Token for this account does not have the permissions requested by the application',
filteringTags: [gw2ApiToken.gw2AccountId, gw2ApiToken.displayName],
disabled: true,
});
Expand Down

0 comments on commit a81f0dc

Please sign in to comment.