Skip to content

Commit

Permalink
code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-ishita-g committed Dec 25, 2024
1 parent cdd1886 commit a6bd5e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/ui/flow/space/join/join_space_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class JoinSpaceViewNotifier extends StateNotifier<JoinSpaceViewState> {
_initializeControllersAndFocusNodes();
}

bool isUpdating = false;

void _initializeControllersAndFocusNodes() {
final controllers = List.generate(6, (index) => TextEditingController(text: '\u200b'));
final focusNodes = List.generate(6, (index) => FocusNode());
Expand All @@ -50,8 +52,6 @@ class JoinSpaceViewNotifier extends StateNotifier<JoinSpaceViewState> {
}
}

bool isUpdating = false;

void _handleTextChange(int index) {
if (isUpdating) return;

Expand Down

0 comments on commit a6bd5e5

Please sign in to comment.