Skip to content

Commit

Permalink
chore: remove unnecessary comments and exports
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinkyaraj-23 committed Feb 26, 2025
1 parent 9cfc773 commit 2ddf533
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/web/src/views/SessionLogin/SessionLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const clearSessionKey = () => {
localStorage.removeItem("user_requirements_nonce");
window.location.reload();
};
// Move outside component to avoid recreation on every render

const getInitialAccounts = (): AccountsState | null => {
const accounts = localStorage.getItem("persist:accounts");
if (!accounts) {
Expand All @@ -26,7 +26,7 @@ const getInitialAccounts = (): AccountsState | null => {
return JSON.parse(accounts) as AccountsState;
};

export const useLoginWithMnemonic = (
const useLoginWithMnemonic = (
defaultAccount: ImplicitAccount | undefined,
accounts: AccountsState | null
) => {
Expand Down
1 change: 0 additions & 1 deletion packages/state/src/slices/accounts/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ const concatUnique = (existingAccounts: ImplicitAccount[], newAccounts: Implicit
};

function hideConfidentialData(acct: ImplicitAccount): ImplicitAccount {
// create a new object from account
const account = { ...acct } as ImplicitAccount;
if (account.type === "social") {
if (account.label.includes("@")) {
Expand Down

2 comments on commit 2ddf533

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title Lines Statements Branches Functions
apps/desktop Coverage: 83%
83.74% (1788/2135) 79.42% (849/1069) 78.27% (454/580)
apps/web Coverage: 83%
83.74% (1788/2135) 79.42% (849/1069) 78.27% (454/580)
packages/components Coverage: 97%
97.48% (194/199) 94.87% (74/78) 89.7% (61/68)
packages/core Coverage: 82%
82.64% (219/265) 72.51% (95/131) 81.66% (49/60)
packages/crypto Coverage: 100%
100% (43/43) 90.9% (10/11) 100% (7/7)
packages/data-polling Coverage: 96%
94.66% (142/150) 87.5% (21/24) 92.85% (39/42)
packages/multisig Coverage: 98%
98.47% (129/131) 85.71% (18/21) 100% (36/36)
packages/social-auth Coverage: 95%
95.45% (21/22) 91.66% (11/12) 100% (3/3)
packages/state Coverage: 81%
80.92% (874/1080) 74.04% (194/262) 75.77% (316/417)
packages/tezos Coverage: 89%
88.65% (125/141) 93.02% (40/43) 87.5% (35/40)
packages/tzkt Coverage: 89%
87.32% (62/71) 87.5% (14/16) 80.48% (33/41)

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title Lines Statements Branches Functions
apps/desktop Coverage: 83%
83.74% (1788/2135) 79.42% (849/1069) 78.27% (454/580)
apps/web Coverage: 83%
83.74% (1788/2135) 79.42% (849/1069) 78.27% (454/580)
packages/components Coverage: 97%
97.48% (194/199) 94.87% (74/78) 89.7% (61/68)
packages/core Coverage: 82%
82.64% (219/265) 72.51% (95/131) 81.66% (49/60)
packages/crypto Coverage: 100%
100% (43/43) 90.9% (10/11) 100% (7/7)
packages/data-polling Coverage: 96%
94.66% (142/150) 87.5% (21/24) 92.85% (39/42)
packages/multisig Coverage: 98%
98.47% (129/131) 85.71% (18/21) 100% (36/36)
packages/social-auth Coverage: 95%
95.45% (21/22) 91.66% (11/12) 100% (3/3)
packages/state Coverage: 81%
80.92% (874/1080) 74.04% (194/262) 75.77% (316/417)
packages/tezos Coverage: 89%
88.65% (125/141) 93.02% (40/43) 87.5% (35/40)
packages/tzkt Coverage: 89%
87.32% (62/71) 87.5% (14/16) 80.48% (33/41)

Please sign in to comment.