Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jessepinho committed Jun 18, 2024
1 parent e69f8f1 commit dd22cc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apps/minifront/src/components/send/send-form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const SendForm = () => {
txInProgress,
} = useStore(sendSelector);
// State to manage privacy warning display
const [showNonNativeFeeWarning, setshowNonNativeFeeWarning] = useState(false);
const [showNonNativeFeeWarning, setShowNonNativeFeeWarning] = useState(false);

// Check if the user has native staking tokens
const stakingToken = hasStakingToken(
Expand Down Expand Up @@ -81,7 +81,7 @@ export const SendForm = () => {
if (Number(amount) < 0) return;
setAmount(amount);
// Conditionally prompt a privacy warning about non-native fee tokens
setshowNonNativeFeeWarning(Number(amount) > 0 && !stakingToken);
setShowNonNativeFeeWarning(Number(amount) > 0 && !stakingToken);
}}
validations={[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const TokenSwapInput = () => {
hasStakingTokenMeta,
} = useStoreShallow(tokenSwapInputSelector);
// State to manage privacy warning display
const [showNonNativeFeeWarning, setshowNonNativeFeeWarning] = useState(false);
const [showNonNativeFeeWarning, setShowNonNativeFeeWarning] = useState(false);

// Check if the user has native staking tokens
const stakingToken = hasStakingToken(balancesResponses, hasStakingTokenMeta);
Expand Down Expand Up @@ -131,7 +131,7 @@ export const TokenSwapInput = () => {
onChange={e => {
if (!isValidAmount(e.target.value, assetIn)) return;
setAmount(e.target.value);
setshowNonNativeFeeWarning(Number(e.target.value) > 0 && !stakingToken);
setShowNonNativeFeeWarning(Number(e.target.value) > 0 && !stakingToken);
}}
/>
<div className='flex gap-4 sm:contents'>
Expand Down

0 comments on commit dd22cc6

Please sign in to comment.