Skip to content

Commit 9473c3d

Browse files
committed
ci: if-condition on signing step
1 parent 194e955 commit 9473c3d

2 files changed

Lines changed: 27 additions & 6 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import 'package:firebase_crashlytics/firebase_crashlytics.dart';
2+
3+
extension FirebaseCrashlyticsLogger on FirebaseCrashlytics {
4+
static Future<void> log(String message) async {
5+
FirebaseCrashlytics.instance.log(message);
6+
}
7+
8+
static Future<void> warn(
9+
Exception exception,
10+
StackTrace? stackTrace, {
11+
String? message,
12+
bool fatal = true,
13+
}) async {
14+
FirebaseCrashlytics.instance.recordError(
15+
exception,
16+
stackTrace,
17+
reason: message,
18+
fatal: fatal,
19+
);
20+
}
21+
}

lib/presentation/profile/widget/commitments_tab.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ class CommitmentsTab extends StatelessWidget {
7070
),
7171
),
7272
),
73-
if (user == null || (crowdActions?.isEmpty ?? false)) ...[
74-
SignUpCTA(
75-
user: user,
76-
title: 'View your amazing commitments here',
77-
),
78-
],
73+
],
74+
if (user == null || (crowdActions?.isEmpty ?? false)) ...[
75+
SignUpCTA(
76+
user: user,
77+
title: 'View your amazing commitments here',
78+
),
7979
],
8080
],
8181
),

0 commit comments

Comments
 (0)