Skip to content

Commit

Permalink
fix: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tanlethanh committed Jun 11, 2024
1 parent 08cb6ed commit c5d8511
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
10 changes: 1 addition & 9 deletions apps/wallet/src/state/runtime/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,10 @@ export const syncRemoteProfile = async () => {

if (keyResult.docs.length === 0) return;

let { userAccount } = await qlClient.request<{
const { userAccount } = await qlClient.request<{
userAccount: Account | undefined;
}>(queries.userAccount);

if (!userAccount) {
const { registerAccountWithoutKey: account } = await qlClient.request<{
registerAccountWithoutKey: Account;
}>(mutations.registerAccountWithoutKey);

userAccount = account;
}

if (keyResult.docs.length !== userAccount?.walletCount) {
const wallets = keyResult.docs.map((key) => ({
address: key._id,
Expand Down
9 changes: 0 additions & 9 deletions packages/graphql/mutation/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,3 @@ export const registerAccount = gql`
}
}
`;

export const registerAccountWithoutKey = gql`
mutation RegisterAccountWithoutKey {
registerAccountWithoutKey {
identifier
email
}
}
`;

0 comments on commit c5d8511

Please sign in to comment.