mirror of
https://github.com/fergalmoran/supanextail.git
synced 2026-01-07 00:56:17 +00:00
Fixed issue with customer id
This commit is contained in:
@@ -36,11 +36,13 @@ const Pricing = () => {
|
||||
if (user) {
|
||||
getSub().then((result) => setSub(result));
|
||||
supabase
|
||||
.from("profiles")
|
||||
.select(`customerId`)
|
||||
.from("subscriptions")
|
||||
.select(`customer_id`)
|
||||
.eq("id", user.id)
|
||||
.single()
|
||||
.then((result) => setCustomerId(result.data?.customerId));
|
||||
.then((result) => {
|
||||
setCustomerId(result.data?.customer_id);
|
||||
});
|
||||
}
|
||||
}, [user]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user