Skip to content

Commit 74b58da

Browse files
ci-botbunsenstraat
authored andcommitted
revert
(cherry picked from commit 1969d41)
1 parent 87a9b2c commit 74b58da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/remix-ui/run-tab/src/lib/actions/account.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ export const createSmartAccount = async (plugin: RunTab, dispatch: React.Dispatc
274274
smartAccountsObj[chainId] = plugin.REACT_API.smartAccounts
275275
localStorage.setItem(aaLocalStorageKey, JSON.stringify(smartAccountsObj))
276276
await fillAccountsList(plugin, dispatch)
277-
await trackMatomoEvent(plugin, { category: 'udapp', action: 'safeSmartAccount', name: 'createdSuccessfully', isClick: true })
277+
await trackMatomoEvent(plugin, { category: 'udapp', action: 'safeSmartAccount', name: `createdSuccessfullyForChainID:${chainId}`, isClick: false })
278278
return plugin.call('notification', 'toast', `Safe account ${safeAccount.address} created for owner ${account}`)
279279
} catch (error) {
280-
await trackMatomoEvent(plugin, { category: 'udapp', action: 'safeSmartAccount', name: 'creationFailed', isClick: true })
280+
await trackMatomoEvent(plugin, { category: 'udapp', action: 'safeSmartAccount', name: `creationFailedWithError:${error.message}`, isClick: false })
281281
console.error('Failed to create safe smart account: ', error)
282282
if (error.message.includes('User rejected the request')) return plugin.call('notification', 'toast', `User rejected the request to create safe smart account !!!`)
283283
else return plugin.call('notification', 'toast', `Failed to create safe smart account !!!`)

0 commit comments

Comments
 (0)