Skip to content

Commit 4281eba

Browse files
committed
fix(ui): trigger purchase refresh on success
Made-with: Cursor
1 parent 896cf8d commit 4281eba

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/settings/components/subscription/components/credit-balance

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/settings/components/subscription/components/credit-balance/credit-balance.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ export function CreditBalance({
113113
{ amount: numAmount, requestId },
114114
{
115115
onSuccess: () => {
116+
onPurchaseComplete?.()
116117
clearCloseTimeout()
117118
closeTimeoutRef.current = setTimeout(() => {
118119
closeModal()
119-
onPurchaseComplete?.()
120120
}, 1500)
121121
},
122122
}

0 commit comments

Comments
 (0)