From 04d2f4a707032a1d36d20999ee29659dcad49ac1 Mon Sep 17 00:00:00 2001 From: Julink Date: Fri, 2 Aug 2024 09:39:02 +0200 Subject: [PATCH] fix: linea cointype field while registering --- .../profile/[name]/registration/RegistrationPoh.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/linea-ens-app/src/components/pages/profile/[name]/registration/RegistrationPoh.tsx b/packages/linea-ens-app/src/components/pages/profile/[name]/registration/RegistrationPoh.tsx index c80d2979e..e11e6f48b 100644 --- a/packages/linea-ens-app/src/components/pages/profile/[name]/registration/RegistrationPoh.tsx +++ b/packages/linea-ens-app/src/components/pages/profile/[name]/registration/RegistrationPoh.tsx @@ -142,7 +142,10 @@ const RegistrationPoh = ({ nameDetails, isLoading }: Props) => { dispatch({ name: 'setProfileData', payload: { - records: [{ key: 'eth', group: 'address', type: 'addr', value: address! }], + records: [ + { key: 'linea', group: 'address', type: 'addr', value: address! }, + { key: 'eth', group: 'address', type: 'addr', value: address! }, + ], clearRecords: resolverExists, resolverAddress: defaultResolverAddress, }, @@ -160,7 +163,9 @@ const RegistrationPoh = ({ nameDetails, isLoading }: Props) => { // If profile is in queue and reverse record is selected, make sure that eth record is included and is set to address if (item.queue.includes('profile') && reverseRecord) { - const recordsWithoutEth = item.records.filter((record) => record.key !== 'eth') + const recordsWithoutEth = item.records.filter( + (record) => record.key !== 'eth' && record.key !== 'linea', + ) const newRecords: ProfileRecord[] = [ { key: 'linea', group: 'address', type: 'addr', value: address! }, { key: 'eth', group: 'address', type: 'addr', value: address! },