Skip to content

Commit

Permalink
fix: autofill money address when paying to dap (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethan-tbd authored Aug 9, 2024
1 parent 8f13e74 commit f68d683
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/shared/json_schema_form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class JsonSchemaForm extends HookWidget {

if (!formState.value.containsKey(key)) {
final formatter = TextInputUtil.getMaskFormatter(pattern);
final initialText = state.formData?[key] ?? '';
final initialText = state.formData?[key] ??
state.moneyAddresses?.firstOrNull?.css
.split(':')
.lastOrNull ??
'';
final controller = TextEditingController(text: initialText);

controller.addListener(
Expand Down

0 comments on commit f68d683

Please sign in to comment.