Skip to content

Commit

Permalink
Fix updated types
Browse files Browse the repository at this point in the history
  • Loading branch information
everdimension committed Dec 15, 2023
1 parent 9eb172d commit 14041d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/ui/pages/SendTransaction/SendTransaction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import { AddressActionDetails } from 'src/ui/components/address-action/AddressAc
import { PageBottom } from 'src/ui/components/PageBottom';
import { interpretTransaction } from 'src/modules/ethereum/transactions/interpret';
import { PhishingDefenceStatus } from 'src/ui/components/PhishingDefence/PhishingDefenceStatus';
import type BigNumber from 'bignumber.js';
import { Content, RenderArea } from 'react-area';
import type { Networks } from 'src/modules/networks/Networks';
import type { AddressAction } from 'defi-sdk';
Expand Down
7 changes: 3 additions & 4 deletions src/ui/pages/SignTypedData/SignTypedData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,13 @@ import { PageBottom } from 'src/ui/components/PageBottom';
import type { InterpretResponse } from 'src/modules/ethereum/transactions/types';
import type { Networks } from 'src/modules/networks/Networks';
import { PageTop } from 'src/ui/components/PageTop';
import type BigNumber from 'bignumber.js';
import { CustomAllowanceView } from 'src/ui/components/CustomAllowanceView';
import { produce } from 'immer';
import { getFungibleAsset } from 'src/modules/ethereum/transactions/actionAsset';
import type { ExternallyOwnedAccount } from 'src/shared/types/ExternallyOwnedAccount';
import { useErrorBoundary } from 'src/ui/shared/useErrorBoundary';
import { isDeviceAccount } from 'src/shared/types/validators';
import { NavigationTitle } from 'src/ui/components/NavigationTitle'
import { NavigationTitle } from 'src/ui/components/NavigationTitle';
import { BUG_REPORT_BUTTON_HEIGHT } from 'src/ui/components/BugReportButton';
import { requestChainForOrigin } from 'src/ui/shared/requests/requestChainForOrigin';
import { HardwareSignMessage } from '../HardwareWalletConnection/HardwareSignMessage';
Expand Down Expand Up @@ -405,8 +404,8 @@ function SignTypedDataContent({
? getPermitAllowanceQuantity(typedData)
: undefined;

const handleChangeAllowance = (value: BigNumber) => {
setAllowanceQuantityBase(value.toString());
const handleChangeAllowance = (value: string) => {
setAllowanceQuantityBase(value);
navigate(-1);
};

Expand Down

0 comments on commit 14041d5

Please sign in to comment.