Skip to content

Commit

Permalink
Lint Pass
Browse files Browse the repository at this point in the history
  • Loading branch information
male-gal committed Jan 11, 2024
1 parent 2b627ae commit 7aa85a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 51 deletions.
38 changes: 0 additions & 38 deletions apps/ledger-live-mobile/src/screens/Exchange/coinifyConfig.ts

This file was deleted.

14 changes: 1 addition & 13 deletions apps/ledger-live-mobile/src/screens/SendFunds/04-Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { getMainAccount, getAccountCurrency } from "@ledgerhq/live-common/accoun
import type { Account } from "@ledgerhq/types-live";
import type { TransactionStatus as BitcoinTransactionStatus } from "@ledgerhq/live-common/families/bitcoin/types";
import { isNftTransaction } from "@ledgerhq/live-common/nft/index";
import { NotEnoughBalance, NotEnoughGas } from "@ledgerhq/errors";
import { NotEnoughGas } from "@ledgerhq/errors";
import { useTheme } from "@react-navigation/native";
import { StackNavigationProp } from "@react-navigation/stack";
import invariant from "invariant";
Expand Down Expand Up @@ -48,18 +48,6 @@ type Props = Navigation;

const WARN_FROM_UTXO_COUNT = 50;

const shouldDispayBuyCta = (error?: unknown): boolean => {
if (!error) {
return false;
}

if (error instanceof NotEnoughGas || error instanceof NotEnoughBalance) {
return true;
}

return false;
};

function SendSummary({ navigation, route }: Props) {
const { colors } = useTheme();
const { nextNavigation, overrideAmountLabel, hideTotal } = route.params;
Expand Down

0 comments on commit 7aa85a0

Please sign in to comment.