mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix: type issue
This commit is contained in:
1 parent
48a3c990a4
commit
baa75e3467
2 files changed
+29227
-467
No files matched your search
@@ -6,9 +6,12 @@ import { StripeSubscription } from 'components/interfaces/Billing'
|
||||
/**
|
||||
* Get project payg statistics
|
||||
*
|
||||
* todo: this looks like a duplicate
|
||||
* of /studio/hooks/misc/useProjectSubscription.tsx
|
||||
*
|
||||
* @param ref project reference
|
||||
*/
|
||||
export function useProjectSubscription(ref: string) {
|
||||
export function useProjectSubscription(ref: string | undefined) {
|
||||
const url = `${API_URL}/projects/${ref}/subscription`
|
||||
const { data, error } = useSWR<StripeSubscription & { error?: string }>(url, get)
|
||||
const anyError = data?.error || error
|
||||
|
||||
Generated
+29223
-466
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user