We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af38fde commit 1a76031Copy full SHA for 1a76031
ui/components/app/wallet-overview/coin-buttons.tsx
@@ -202,13 +202,15 @@ const CoinButtons = ({
202
): { snap_id?: string } => {
203
// Some accounts might be Snap accounts, in this case we add some extra properties
204
// to the metrics:
205
- if (internalAccount.metadata.snap) {
+ const snapId = internalAccount.metadata.snap?.id;
206
+ if (snapId) {
207
return {
- snap_id: internalAccount.metadata.snap?.id,
208
+ snap_id: snapId,
209
};
210
}
211
- // If the account is not a Snap account, then there's no extra property
212
+ // If the account is not a Snap account or that we could not get the Snap ID for
213
+ // some reason, we don't add any extra property.
214
return {};
215
216
0 commit comments