Skip to content

Commit 64844b9

Browse files
Update packages/react/src/components/uiComponents.tsx
Co-authored-by: Jacek Radko <[email protected]>
1 parent 1dbb055 commit 64844b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react/src/components/uiComponents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const _UserButton = withClerk(
257257
const { customPages, customPagesPortals } = useUserProfileCustomPages(props.children, {
258258
allowForAnyChildren: !!props.__experimental_asProvider,
259259
});
260-
const userProfileProps = Object.assign({}, props.userProfileProps, { customPages });
260+
const userProfileProps = { ...props.userProfileProps, customPages };
261261
const { customMenuItems, customMenuItemsPortals } = useUserButtonCustomMenuItems(props.children, {
262262
allowForAnyChildren: !!props.__experimental_asProvider,
263263
});

0 commit comments

Comments
 (0)