mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-31 06:35:53 +00:00
add fuzzy check to handle some api endpoints that think consistency doesn't matter
This commit is contained in:
parent
a4a7abd6b8
commit
7ccb403ed3
1 changed files with 2 additions and 1 deletions
|
@ -206,7 +206,8 @@ class _StepScaffoldState extends ConsumerState<StepScaffold> {
|
|||
void sendFromStack() {
|
||||
final trade = ref.read(desktopExchangeModelProvider)!.trade!;
|
||||
final address = trade.payInAddress;
|
||||
final coin = AppConfig.getCryptoCurrencyForTicker(trade.payInCurrency)!;
|
||||
final coin = AppConfig.getCryptoCurrencyForTicker(trade.payInCurrency) ??
|
||||
AppConfig.getCryptoCurrencyByPrettyName(trade.payInCurrency);
|
||||
final amount = Decimal.parse(trade.payInAmount).toAmount(
|
||||
fractionDigits: coin.fractionDigits,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue