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

chore: fix some comments #2089

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 @@ -73,7 +73,7 @@ export const GovRepresentativesContent = ({

const isDirty = reps.some((r) => {
const rep = representatives.find((re) => re.chainId === r.chainId);
// dirty if remvoing or changing address from initial value
// dirty if removing or changing address from initial value
if (!rep) return false;

return (
Expand Down
4 changes: 2 additions & 2 deletions src/layouts/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function AppHeader() {

const disableTestnet = () => {
localStorage.setItem('testnetsEnabled', 'false');
// Set window.location to trigger a page reload when navigating to the the dashboard
// Set window.location to trigger a page reload when navigating to the dashboard
window.location.href = '/';
};

Expand All @@ -134,7 +134,7 @@ export function AppHeader() {
localStorage.removeItem('forkBaseChainId');
localStorage.removeItem('forkNetworkId');
localStorage.removeItem('forkRPCUrl');
// Set window.location to trigger a page reload when navigating to the the dashboard
// Set window.location to trigger a page reload when navigating to the dashboard
window.location.href = '/';
};

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/components/TestNetModeSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const TestNetModeSwitcher = ({ component = ListItem }: TestNetModeSwitche
const newState = !testnetsEnabled;
setTestnetsMode(!testnetsEnabled);
localStorage.setItem(testnetsEnabledId, newState ? 'true' : 'false');
// Set window.location to trigger a page reload when navigating to the the dashboard
// Set window.location to trigger a page reload when navigating to the dashboard
window.location.href = '/';
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export const SupplyAssetsList = () => {
setSortName={setSortName}
setSortDesc={setSortDesc}
sortKey={col.sortKey}
source="Supplies Dashbaord"
source="Supplies Dashboard"
>
{col.title}
</ListHeaderTitle>
Expand Down
2 changes: 1 addition & 1 deletion src/store/poolSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export interface PoolSlice {
claimRewards: (
args: ClaimRewardsActionsProps & { formattedReserves: FormattedReservesAndIncentives[] }
) => Promise<EthereumTransactionTypeExtended[]>;
// TODO: optimize types to use only neccessary properties
// TODO: optimize types to use only necessary properties
swapCollateral: (args: SwapActionProps) => Promise<EthereumTransactionTypeExtended[]>;
withdrawAndSwitch: (args: WithdrawAndSwitchActionProps) => PopulatedTransaction;
repay: (args: RepayArgs) => PopulatedTransaction;
Expand Down