minor fixes on status responses
This commit is contained in:
@@ -141,9 +141,7 @@ class BatchController extends ChangeNotifier {
|
||||
if (!_disposed) notifyListeners();
|
||||
|
||||
try {
|
||||
final raw = await http.get(
|
||||
'/public/providers/$providerId/products',
|
||||
);
|
||||
final raw = await http.get('/public/providers/$providerId/products');
|
||||
final response = _unwrap(raw);
|
||||
final List<dynamic> list = response is List
|
||||
? response
|
||||
@@ -562,7 +560,7 @@ class BatchController extends ChangeNotifier {
|
||||
);
|
||||
model.isActing = false;
|
||||
if (!_disposed) notifyListeners();
|
||||
if (response['status'] != 'FAILED') {
|
||||
if (batchTransaction.pollingStatus == 'SUCCESS') {
|
||||
return ApiResponse.success(batchTransaction);
|
||||
} else {
|
||||
return ApiResponse.failure(
|
||||
|
||||
@@ -245,7 +245,7 @@ class _BatchCreateScreenState extends State<BatchCreateScreen> {
|
||||
Row(
|
||||
children: [
|
||||
Expanded(
|
||||
flex: 2,
|
||||
flex: 1,
|
||||
child: TextFormField(
|
||||
controller: _amountController,
|
||||
readOnly: providerController
|
||||
@@ -279,6 +279,7 @@ class _BatchCreateScreenState extends State<BatchCreateScreen> {
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
Expanded(
|
||||
flex: 1,
|
||||
child: TextFormField(
|
||||
controller: _debitPhoneController,
|
||||
keyboardType: TextInputType.phone,
|
||||
|
||||
Reference in New Issue
Block a user