Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:safe-global/safe-wallet-web into nect
Browse files Browse the repository at this point in the history
  • Loading branch information
katspaugh committed Oct 27, 2023
2 parents 68655b7 + 04cd78f commit c35bc78
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { updateAddressBook } from '@/components/new-safe/create/logic/address-bo
import { useAppDispatch } from '@/store'
import useChainId from '@/hooks/useChainId'
import { usePendingSafe } from './usePendingSafe'
import { gtmSetSafeAddress } from '@/services/analytics/gtm'

const useSafeCreationEffects = ({
status,
Expand Down Expand Up @@ -74,6 +75,7 @@ const useSafeCreationEffects = ({
// Tracking
useEffect(() => {
if (status === SafeCreationStatus.SUCCESS) {
pendingSafe?.safeAddress && gtmSetSafeAddress(pendingSafe.safeAddress)
trackEvent(CREATE_SAFE_EVENTS.CREATED_SAFE)
return
}
Expand All @@ -82,7 +84,7 @@ const useSafeCreationEffects = ({
trackEvent(CREATE_SAFE_EVENTS.REJECT_CREATE_SAFE)
return
}
}, [status])
}, [pendingSafe?.safeAddress, status])
}

export default useSafeCreationEffects
8 changes: 4 additions & 4 deletions src/components/transactions/HumanDescription/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,14 @@ export const TransferDescription = ({ txInfo, isSendTx }: { txInfo: Transfer; is
export const HumanDescription = ({ fragments }: RichDecodedInfo) => {
return (
<>
{fragments.map((fragment) => {
{fragments.map((fragment, index) => {
switch (fragment.type) {
case RichFragmentType.Text:
return <span>{fragment.value}</span>
return <span key={index}>{fragment.value}</span>
case RichFragmentType.Address:
return <AddressFragment fragment={fragment} />
return <AddressFragment key={index} fragment={fragment} />
case RichFragmentType.TokenValue:
return <TokenValueFragment fragment={fragment} />
return <TokenValueFragment key={index} fragment={fragment} />
}
})}
</>
Expand Down

0 comments on commit c35bc78

Please sign in to comment.