Skip to content

Commit

Permalink
fix: fix error message
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy committed Nov 13, 2024
1 parent ed52bb0 commit e35eb65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/Options/components/GitHubToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const GitHubToken = () => {
interactive: true,
},
async (redirectUrl) => {
if (chrome.runtime.lastError || !redirectUrl) {
if (!redirectUrl) {
console.error(chrome.runtime.lastError ? chrome.runtime.lastError.message : 'Authorization failed.');
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Options/components/GiteeToken.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const GiteeToken = () => {
interactive: true,
},
async function (redirectUrl) {
if (chrome.runtime.lastError || !redirectUrl) {
if (!redirectUrl) {
console.error(chrome.runtime.lastError ? chrome.runtime.lastError.message : 'Authorization failed.');
return;
}
Expand Down

0 comments on commit e35eb65

Please sign in to comment.