Skip to content

Commit

Permalink
fix: Subscription Details
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhunty committed Jun 19, 2023
1 parent a63d165 commit 1019a6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion projects/Mallard/src/authentication/AccessContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import type { AnyAttempt, ResolvedAttempt } from './lib/Attempt';
import { InvalidAttempt, isNotRun, isValid, NotRun } from './lib/Attempt';
import type { ReceiptIOS } from './services/iap';

type AttemptType = 'iap' | 'cas' | 'identity';
type AttemptType = 'iap' | 'cas' | 'identity' | 'okta';

type AttemptResponse<T> = {
attempt: ResolvedAttempt<T>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const IdentityDetails = ({
),
keyValueItem(
Copy.subscriptionDetails.userId,
identityData.membershipData.userId,
identityData.membershipDetails.userId,
),
]}
/>
Expand Down Expand Up @@ -96,10 +96,7 @@ const LoggedOutDetails = () => (
);

const SubscriptionDetailsScreen = () => {
const { identityData, iapData, casData, attempt } =
useContext(AccessContext);

console.log(JSON.stringify(identityData));
const { oktaData, iapData, casData, attempt } = useContext(AccessContext);

return (
<HeaderScreenContainer
Expand All @@ -122,11 +119,11 @@ const SubscriptionDetailsScreen = () => {
return (
iapData && <IAPDetails iapData={iapData} />
);
case 'identity':
case 'okta':
return (
identityData && (
oktaData && (
<IdentityDetails
identityData={identityData}
identityData={oktaData}
/>
)
);
Expand Down

0 comments on commit 1019a6e

Please sign in to comment.