Skip to content

Commit

Permalink
FIX: Correct subscription status of user
Browse files Browse the repository at this point in the history
User was somehow subscribed, even though there's no subscription data in Supabase
  • Loading branch information
adjiap committed Jul 23, 2024
1 parent a8d9752 commit 6547abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/useUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const MyUserContextProvider = (props: Props) => {
Promise.allSettled([getUserDetails(), getSubscription()]).then(
(results) => {
const userDetailsPromise = results[0];
const subscriptionPromise = results[0];
const subscriptionPromise = results[1];

if (userDetailsPromise.status === "fulfilled") {
setUserDetails(userDetailsPromise.value.data as UserDetails);
Expand Down

0 comments on commit 6547abc

Please sign in to comment.