Skip to content

Commit

Permalink
Fix for duplicate requests on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Sep 25, 2024
1 parent eeb1ebe commit f40f40e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/redux/auth/auth_middleware.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import 'dart:async';

// Flutter imports:
import 'package:flutter/material.dart';
import 'package:invoiceninja_flutter/redux/client/client_actions.dart';
import 'package:invoiceninja_flutter/utils/widgets.dart';

// Package imports:
Expand Down Expand Up @@ -251,7 +250,6 @@ Middleware<AppState> _createRefreshRequest(AuthRepository repository) {
} else if (state.company.isLarge && !state.isLoaded) {
print('## Skipping refresh request - not loaded');
next(action);
store.dispatch(LoadClients());
return;
}
}
Expand Down

0 comments on commit f40f40e

Please sign in to comment.