mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-10-01 12:01:10 +08:00
chore: redirect to the usage page when balance query fails
This commit is contained in:
1 parent
81d15b8093
commit
3ceea6b060
1 file changed
+1
@@ -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