mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
iap: Allow exp to be null
Not sure how this can ever happen, but it's clearly being reported in Sentry.
This commit is contained in:
@ -8,7 +8,7 @@ class InAppPurchases {
|
||||
static void confirmProPurchase() async {
|
||||
var currentDt = DateTime.now().toUtc().toIso8601String();
|
||||
var exp = Settings.instance.proExpirationDate;
|
||||
if (exp.isNotEmpty && exp.compareTo(currentDt) > 0) {
|
||||
if (exp != null && exp.isNotEmpty && exp.compareTo(currentDt) > 0) {
|
||||
print("Not checking PurchaseInfo as exp = $exp and cur = $currentDt");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user