mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-02 21:03:09 +08:00
chore: redirect to the usage page when balance query fails
This commit is contained in:
@@ -39,6 +39,7 @@ function GeneralPart({ config, updateConfig }) {
|
||||
},
|
||||
})
|
||||
if (response.ok) setBalance((await response.json()).total_available.toFixed(2))
|
||||
else openUrl('https://platform.openai.com/account/usage')
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user