Skip to content

Commit

Permalink
ci: if-condition on signing step
Browse files Browse the repository at this point in the history
  • Loading branch information
Xazin committed Mar 1, 2023
1 parent 194e955 commit 9473c3d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
21 changes: 21 additions & 0 deletions lib/core/utils/firebase_crashlytics_extension.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import 'package:firebase_crashlytics/firebase_crashlytics.dart';

extension FirebaseCrashlyticsLogger on FirebaseCrashlytics {
static Future<void> log(String message) async {
FirebaseCrashlytics.instance.log(message);
}

static Future<void> warn(
Exception exception,
StackTrace? stackTrace, {
String? message,
bool fatal = true,
}) async {
FirebaseCrashlytics.instance.recordError(
exception,
stackTrace,
reason: message,
fatal: fatal,
);
}
}
12 changes: 6 additions & 6 deletions lib/presentation/profile/widget/commitments_tab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@ class CommitmentsTab extends StatelessWidget {
),
),
),
if (user == null || (crowdActions?.isEmpty ?? false)) ...[
SignUpCTA(
user: user,
title: 'View your amazing commitments here',
),
],
],
if (user == null || (crowdActions?.isEmpty ?? false)) ...[
SignUpCTA(
user: user,
title: 'View your amazing commitments here',
),
],
],
),
Expand Down

0 comments on commit 9473c3d

Please sign in to comment.