Skip to content

Commit

Permalink
[skip ci] Remove lodash occurrences
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Feb 6, 2025
1 parent 079cffa commit f9804e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/rollbar/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _get from 'lodash/get';
import { get } from 'es-toolkit/compat';
import type { Dictionary } from 'rollbar';

export function isBot(userAgent: string | undefined) {
Expand Down Expand Up @@ -59,7 +59,7 @@ export function getRequestInfo(item: Dictionary): { url: string } | undefined {
}

export function getExceptionClass(item: Dictionary) {
const exceptionClass = _get(item, 'body.trace.exception.class');
const exceptionClass = get(item, 'body.trace.exception.class');

return typeof exceptionClass === 'string' ? exceptionClass : undefined;
}
2 changes: 1 addition & 1 deletion ui/shared/logs/LogTopic.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Flex, Button, Select } from '@chakra-ui/react';
import capitalize from 'lodash/capitalize';
import { capitalize } from 'es-toolkit';
import React from 'react';

import hexToAddress from 'lib/hexToAddress';
Expand Down

0 comments on commit f9804e5

Please sign in to comment.