Skip to content

Commit 282f2f4

Browse files
author
HitMargin
committed
删除误导注释
1 parent 1e53943 commit 282f2f4

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/components/ConsoleOAuthFlow.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ function OAuthStatusMessage({
647647
} else {
648648
for (const [k, v] of Object.entries(env)) process.env[k] = v
649649
setOAuthStatus({ state: 'success' })
650-
// Schedule onDone after state update to avoid potential state update on unmounted component
651650
void onDone()
652651
}
653652
}, [activeField, inputValue, displayValues, setOAuthStatus, onDone])
@@ -844,7 +843,6 @@ function OAuthStatusMessage({
844843
} else {
845844
for (const [k, v] of Object.entries(env)) process.env[k] = v
846845
setOAuthStatus({ state: 'success' })
847-
// Schedule onDone after state update to avoid potential state update on unmounted component
848846
void onDone()
849847
}
850848
}, [activeField, openaiInputValue, openaiDisplayValues, setOAuthStatus, onDone])

0 commit comments

Comments
 (0)