Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regenerate yarn lock #3721

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const createNetworkSession = async ({
if (retData === undefined || retData === null) {
retData = await setter();
}
if (retData === undefined || retData === null || retData === '') {
if (retData === undefined || retData === null) {
throw new Error('Could not set a required variable');
}
return retData;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const getLocalStorageItem = <T>(localStorageKey: string): T | null => {
const data = localStorage.getItem(localStorageKey);
if (typeof data === 'string') {
return data as T;
return data as unknown as T;
} else {
return data ? (JSON.parse(data) as T) : null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ambient-utils/types/token/TokenIF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { BigNumber } from 'ethers';
import { tokenListURIs } from '../../constants';

// string-union type of all acceptable values for `fromList` property
type uris = typeof tokenListURIs[keyof typeof tokenListURIs];
type uris = (typeof tokenListURIs)[keyof typeof tokenListURIs];
export type otherTokenSources = 'on_chain_by_URL_param';
type tokenProvenances = uris | otherTokenSources;

Expand Down
1 change: 0 additions & 1 deletion src/components/Global/TabComponent/TabComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ export default function TabComponent(props: TabPropsIF) {
<div className={styles.tab_icon_container}>
<DefaultTooltip
title={label}
placeholder={'bottom'}
arrow
enterDelay={400}
leaveDelay={200}
Expand Down
Loading
Loading