Skip to content

Commit

Permalink
fix: brc20 send form bug, closes leather-io#4482
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo authored and pete-watters committed Jan 17, 2024
1 parent 6a06b47 commit f3378fb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ export function AmountField({
<Box mt="12px">{switchableAmount && switchableAmount}</Box>
</Flex>
{showError && (
<ErrorLabel data-testid={SendCryptoAssetSelectors.AmountFieldInputErrorLabel}>
<ErrorLabel
justifyContent="center"
data-testid={SendCryptoAssetSelectors.AmountFieldInputErrorLabel}
>
{meta.error}
</ErrorLabel>
)}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Form, Outlet, useLocation } from 'react-router-dom';
import { Outlet, useLocation } from 'react-router-dom';

import { Box } from '@stacks/ui';
import { Formik } from 'formik';
import { Form, Formik } from 'formik';
import get from 'lodash.get';

import { openInNewTab } from '@app/common/utils/open-in-new-tab';
Expand Down
2 changes: 1 addition & 1 deletion src/shared/storage/redux-pesist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async function migrateToRenameKeysStoreModule(state: Promise<any>) {
};

// add stacks ledger keys to new place
if (resolvedState.keys?.entities.default.type === 'ledger') {
if (resolvedState.keys?.entities.default?.type === 'ledger') {
newStore.ledger = {
...resolvedState.ledger,
stacks: processStacksLedgerKeys(resolvedState.keys),
Expand Down

0 comments on commit f3378fb

Please sign in to comment.