feat: enhance form components with validation and dynamic properties; update payment handling and UI interactions
This commit is contained in:
@@ -87,7 +87,7 @@ export class NativeBridgeService {
|
||||
window.NativeBridge.pay(request.amount, request.id || '');
|
||||
return { success: true };
|
||||
} catch (error) {
|
||||
this.toastService.info({ text: (error as Error).message });
|
||||
// this.toastService.info({ text: (error as Error).message });
|
||||
return { success: false, error: (error as Error).message };
|
||||
}
|
||||
// const fn = window.NativeBridge.pay(123, 'test');
|
||||
|
||||
@@ -11,6 +11,8 @@ export function greaterThanValidator(minValue: number): ValidatorFn {
|
||||
return null;
|
||||
}
|
||||
|
||||
console.log('v', v);
|
||||
|
||||
const numericValue = typeof v === 'number' ? v : Number(v);
|
||||
if (Number.isNaN(numericValue)) {
|
||||
return { greaterThan: 'مقدار باید عددی باشد' };
|
||||
|
||||
Reference in New Issue
Block a user