mirror of
https://github.com/we-promise/sure
synced 2026-04-25 17:15:07 +02:00
Revert "fix: Use getValidAccessToken() in connectivity banner sync button"
This reverts commit 7015c160f0.
This commit is contained in:
@@ -101,15 +101,11 @@ class _ConnectivityBannerState extends State<ConnectivityBanner> {
|
||||
return TextButton(
|
||||
onPressed: _isSyncing
|
||||
? null
|
||||
: () async {
|
||||
final accessToken = await authProvider.getValidAccessToken();
|
||||
if (!context.mounted) return;
|
||||
_handleSync(
|
||||
: () => _handleSync(
|
||||
context,
|
||||
accessToken,
|
||||
authProvider.tokens?.accessToken,
|
||||
transactionsProvider,
|
||||
);
|
||||
},
|
||||
),
|
||||
style: TextButton.styleFrom(
|
||||
foregroundColor: Colors.blue.shade900,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user