Skip to content

Commit

Permalink
Merge pull request #1830 from synonymdev/fix/remove-coin-select-text
Browse files Browse the repository at this point in the history
fix(ui): Remove coin-select preference text
  • Loading branch information
coreyphillips authored May 15, 2024
2 parents 53a92a1 + b73dfc3 commit 061864c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/screens/Wallets/Send/CoinSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
transactionSelector,
utxosSelector,
} from '../../../store/reselect/wallet';
import { coinSelectPreferenceSelector } from '../../../store/reselect/settings';
import { TRANSACTION_DEFAULTS } from '../../../utils/wallet/constants';
import { IUtxo } from 'beignet';
import { showToast } from '../../../utils/notifications';
Expand Down Expand Up @@ -87,7 +86,6 @@ const CoinSelection = ({

const transaction = useAppSelector(transactionSelector);
const utxos = useAppSelector(utxosSelector);
const coinSelectPreference = useAppSelector(coinSelectPreferenceSelector);
const [autoSelectionEnabled, setAutoSelectionEnabled] = useState(
transaction.inputs.length === utxos.length,
);
Expand Down Expand Up @@ -117,11 +115,6 @@ const CoinSelection = ({
return combinedAndUnique;
}, [inputs, utxos]);

const preference = useMemo(
() => t(`preference_${coinSelectPreference}`),
[coinSelectPreference, t],
);

const txInputValue = useMemo(
() => getTransactionInputValue({ inputs: transaction.inputs }),
[transaction],
Expand Down Expand Up @@ -181,7 +174,6 @@ const CoinSelection = ({
<View style={[styles.coinRoot, { borderBottomColor: white10 }]}>
<View style={styles.coinAmount}>
<BodyMSB>{t('selection_auto')}</BodyMSB>
<BodySSB color="white50">{preference}</BodySSB>
</View>
<Switch
value={autoSelectionEnabled}
Expand Down

0 comments on commit 061864c

Please sign in to comment.