fixed quotation currency inference
This commit is contained in:
@@ -39,8 +39,7 @@ class PaymentProvider extends ChangeNotifier {
|
||||
String? clientPaymentRef,
|
||||
Map<String, String>? metadata,
|
||||
}) async {
|
||||
if (!_organization.isOrganizationSet)
|
||||
throw StateError('Organization is not set');
|
||||
if (!_organization.isOrganizationSet) throw StateError('Organization is not set');
|
||||
final quoteRef = _quotation.quotation?.quoteRef;
|
||||
if (quoteRef == null || quoteRef.isEmpty) {
|
||||
throw StateError('Quotation reference is not set');
|
||||
|
||||
@@ -98,7 +98,7 @@ class QuotationIntentBuilder {
|
||||
}
|
||||
return FxIntent(
|
||||
pair: CurrencyPair(base: base, quote: quote),
|
||||
side: FxSide.buyBaseSellQuote,
|
||||
side: FxSide.sellBaseBuyQuote,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user