Skip to content

Commit 7e5e00c

Browse files
committed
chore: redirect to the usage page when balance query fails
1 parent 42a68f4 commit 7e5e00c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/popup/Popup.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ function GeneralPart({ config, updateConfig }) {
3939
},
4040
})
4141
if (response.ok) setBalance((await response.json()).total_available.toFixed(2))
42+
else openUrl('https://platform.openai.com/account/usage')
4243
}
4344

4445
return (

0 commit comments

Comments
 (0)