mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-25 05:58:42 +01:00
Remove same currency swap check
This commit is contained in:
@@ -647,11 +647,6 @@ abstract class ExchangeViewModelBase extends WalletChangeListenerViewModel with
|
||||
|
||||
@action
|
||||
Future<void> createTrade() async {
|
||||
if (depositCurrency == receiveCurrency) {
|
||||
tradeState = TradeIsCreatedFailure(
|
||||
title: S.current.trade_not_created, error: 'Can\'t exchange the same currency');
|
||||
return;
|
||||
}
|
||||
if (isSendAllEnabled) {
|
||||
await calculateDepositAllAmount();
|
||||
final amount = double.tryParse(depositAmount);
|
||||
|
||||
Reference in New Issue
Block a user