Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielPrediger committed Jul 10, 2024
1 parent cc68a5a commit e4e6418
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion source/pages/Settings/CustomRPC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const CustomRPCView = () => {
>(null);
const [isSyscoinRpc, setIsSyscoinRpc] = useState(Boolean(isSyscoinSelected));
const { activeNetwork, isBitcoinBased } = useSelector(
(state: RootState) => state.vault
(stateVault: RootState) => stateVault.vault
);
const { wallet } = getController();
const { alert, navigate } = useUtils();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export interface IPromiseProps {
promise: Promise<{}>;
}

// eslint-disable-next-line no-shadow
export enum PromiseTargets {
ASSETS = 'assets',
BALANCE = 'balance',
Expand All @@ -29,7 +30,7 @@ export class CancellablePromises {
reject: (reason?: any) => void
) => void
): { cancel: () => void; currentPromise: Promise<T> } => {
let cancel = () => {};
let cancel: () => void;

const currentPromise: Promise<T> = new Promise((resolve, reject) => {
cancel = () => {
Expand Down
4 changes: 3 additions & 1 deletion source/scripts/Background/controllers/transactions/queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export class Queue {
} else {
this.queue.push(
new Promise(async (resolve) => {
await new Promise<void>((resolve) => this.waiting.push(resolve));
await new Promise<void>((resolvePromise) =>
this.waiting.push(resolvePromise)
);
const result = await this.runFn(fn);
return resolve(result);
})
Expand Down
1 change: 1 addition & 0 deletions source/state/vault/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type PaliAccount = {
[id: number]: IPaliAccount;
};

// eslint-disable-next-line no-shadow
export enum TransactionsType {
Ethereum = 'ethereum',
Syscoin = 'syscoin',
Expand Down

0 comments on commit e4e6418

Please sign in to comment.