Skip to content

Commit

Permalink
fixed user dialog clientReadOnlyMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
fomalhautb committed Nov 6, 2024
1 parent b2d5afc commit 788a724
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/dashboard/src/components/user-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export function UserDialog(props: {
primaryEmailVerified: props.user.primaryEmailVerified,
signedUpAt: props.user.signedUpAt,
clientMetadata: props.user.clientMetadata == null ? "" : JSON.stringify(props.user.clientMetadata, null, 2),
clientReadOnlyMetadata: props.user.clientReadOnlyMetadata == null ? "" : JSON.stringify(props.user.clientReadOnlyMetadata, null, 2),
serverMetadata: props.user.serverMetadata == null ? "" : JSON.stringify(props.user.serverMetadata, null, 2),
passwordEnabled: props.user.hasPassword,
otpAuthEnabled: props.user.otpAuthEnabled,
Expand All @@ -44,8 +45,8 @@ export function UserDialog(props: {
displayName: yup.string().optional(),
signedUpAt: yup.date().required(),
clientMetadata: jsonStringOrEmptySchema.default("null"),
serverMetadata: jsonStringOrEmptySchema.default("null"),
clientReadOnlyMetadata: jsonStringOrEmptySchema.default("null"),
serverMetadata: jsonStringOrEmptySchema.default("null"),
primaryEmailVerified: yup.boolean().optional(),
password: yup.string().optional(),
otpAuthEnabled: yup.boolean().test({
Expand Down

0 comments on commit 788a724

Please sign in to comment.