Update Display Name

Users can update the display name in their profiles. The handle will NOT be changed in this case.

import {
  useUpdateProfileDisplayName,
} from '@futureverse/asset-register-react/profiles'

const Page = () => {
  const { updateAsync } = useUpdateProfileDisplayName()

  const updateProfileDisplayName = async () => {
      const profile = await updateAsync({
        displayName: 'John Doe',
        owner: '<FUTUREPASS_ADDRESS>',
        handle: 'john-doe-123'
      })
      
      console.log('profile', profile)
  }

  return (
    <>
      <button onClick={updateProfileDisplayName}>Update Profile Display Name</button>
    </>
  )
}

Last updated

© 2023 -> ♾️