Skip to content
Snippets Groups Projects
Unverified Commit ec1aeef4 authored by Matiss Janis Aboltins's avatar Matiss Janis Aboltins
Browse files

chore: fix some more no-unused-vars issues

parent 77795c63
No related branches found
No related tags found
No related merge requests found
......@@ -248,28 +248,6 @@ function keyWithShift(key) {
return { ...key, shiftKey: true };
}
function verifySortOrder(transactions) {
transactions.forEach((transaction, idx) => {
let lastTransaction = idx === 0 ? null : transactions[idx];
if (transaction.sort_order == null) {
throw new Error("Transaction doesn't have sort_order");
}
if (
lastTransaction &&
transaction.sort_order > lastTransaction.sort_order
) {
throw new Error(
'Transaction sort order must always be decreasing. Found increasing sort order:\n ' +
JSON.stringify(lastTransaction) +
'\n ' +
JSON.stringify(transaction)
);
}
});
}
function renderTransactions(extraProps) {
let transactions = generateTransactions(5, [6]);
// Hardcoding the first value makes it easier for tests to do
......@@ -599,7 +577,6 @@ describe('Transactions', () => {
test('dropdown selects an item when clicking', async () => {
const { container, getTransactions } = renderTransactions();
let input = editField(container, 'category', 2);
let tooltip = container.querySelector('[data-testid="tooltip"]');
// Make sure none of the items are highlighted
......@@ -705,7 +682,7 @@ describe('Transactions', () => {
});
test('dropdown escape resets the value ', () => {
const { container, getTransactions } = renderTransactions();
const { container } = renderTransactions();
let input = editField(container, 'category', 2);
let oldValue = input.value;
......
......@@ -56,7 +56,7 @@ class Debug extends React.Component {
}
async fetchSqlGenResult() {
let row = {};
let row = {}; // eslint-disable-line
try {
row = (0, eval)('(' + this.state.sqlgenRow + ')'); // eslint-disable-line
} catch (e) {}
......@@ -85,11 +85,11 @@ class Debug extends React.Component {
render() {
const {
value,
outputType,
ast,
code,
sql,
// value,
// outputType,
// ast,
// code,
// sql,
sqlgenValue,
sqlgenRow,
sqlgenResult
......
import React from 'react';
import * as monthUtils from 'loot-core/src/shared/months';
import { P } from 'loot-design/src/components/common';
import { Standalone, Title } from './common';
import Navigation from './Navigation';
function TransactionEnter({ fromYNAB, navigationProps }) {
const currentDay = monthUtils.currentDay();
function TransactionEnter({ navigationProps }) {
return (
<Standalone width={400}>
<Title>Add a transaction</Title>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment