Skip to content

Commit

Permalink
fix: send form white screen
Browse files Browse the repository at this point in the history
  • Loading branch information
fbwoolf committed Jun 22, 2022
1 parent 92e1047 commit 1ff0e70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/pages/send-tokens/components/send-form-inner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ export function SendFormInner(props: SendFormInnerProps) {
setFieldError('amount', undefined);
}, [assets.length, setValues, values, nonce, setFieldError]);

const hasValues = values.amount && values.recipient !== '' && values.fee && values.nonce;
const hasValues =
values.amount && values.recipient !== '' && values.fee && values.nonce !== undefined;

const symbol = selectedAsset?.type === 'stx' ? 'STX' : selectedAsset?.meta?.symbol;

Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/send-tokens/send-tokens.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function SendTokensFormBase() {
[broadcastTransactionFn, handleConfirmDrawerOnClose, navigate, setFeeEstimations]
);

if (assets.length < 1 || !nonce) return null;
if (assets.length < 1) return null;

const initialValues = {
amount: '',
Expand Down

0 comments on commit 1ff0e70

Please sign in to comment.