Skip to content

Commit

Permalink
🐛 fix(perf): reduce token size with length value of quota
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchinegod committed Jun 30, 2023
1 parent 0527f52 commit 27b505c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/Tools/DigitsAI/Oracle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const AGI: React.FC = () => {

useLayoutEffect(() => {
if (initialState?.currentUser?.quota) {
setQuota(Object.values(initialState?.currentUser?.quota).length);
setQuota(Number(initialState?.currentUser?.quota));
}
}, []);
return (
Expand Down

0 comments on commit 27b505c

Please sign in to comment.