Frank 5 months ago
parent
commit
6c02d4ce66
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cloud/app/src/routes/workspace/[id].tsx

+ 2 - 1
cloud/app/src/routes/workspace/[id].tsx

@@ -672,6 +672,7 @@ function NewUserSection() {
 
 export default function () {
   const params = useParams()
+  const balanceInfo = createAsync(() => getBillingInfo(params.id))
 
   return (
     <div data-page="workspace-[id]">
@@ -690,7 +691,7 @@ export default function () {
         <NewUserSection />
         <KeySection />
         <BillingSection />
-        <Show when={createAsync(() => getBillingInfo(params.id))()?.reload}>
+        <Show when={balanceInfo()?.reload}>
           <MonthlyLimitSection />
         </Show>
         <UsageSection />