🐛 Fix bugs
This commit is contained in:
@@ -192,12 +192,14 @@ public class PaymentService(
|
|||||||
Notification = new PushNotification
|
Notification = new PushNotification
|
||||||
{
|
{
|
||||||
Topic = "wallets.transactions",
|
Topic = "wallets.transactions",
|
||||||
Title = transaction.Amount > 0
|
Title = localizer["TransactionNewTitle", readableTransactionRemark],
|
||||||
? localizer["TransactionNewBodyMinus", readableTransactionRemark]
|
Body = transaction.Amount > 0
|
||||||
: localizer["TransactionNewBodyPlus", readableTransactionRemark],
|
? localizer["TransactionNewBodyMinus",
|
||||||
Body = localizer["TransactionNewTitle",
|
transaction.Amount.ToString(CultureInfo.InvariantCulture),
|
||||||
transaction.Amount.ToString(CultureInfo.InvariantCulture),
|
transaction.Currency]
|
||||||
transaction.Currency],
|
: localizer["TransactionNewBodyPlus",
|
||||||
|
transaction.Amount.ToString(CultureInfo.InvariantCulture),
|
||||||
|
transaction.Currency],
|
||||||
IsSavable = true
|
IsSavable = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -224,12 +226,14 @@ public class PaymentService(
|
|||||||
Notification = new PushNotification
|
Notification = new PushNotification
|
||||||
{
|
{
|
||||||
Topic = "wallets.transactions",
|
Topic = "wallets.transactions",
|
||||||
Title = transaction.Amount > 0
|
Title = localizer["TransactionNewTitle", readableTransactionRemark],
|
||||||
? localizer["TransactionNewBodyPlus", readableTransactionRemark]
|
Body = transaction.Amount > 0
|
||||||
: localizer["TransactionNewBodyMinus", readableTransactionRemark],
|
? localizer["TransactionNewBodyPlus",
|
||||||
Body = localizer["TransactionNewTitle",
|
transaction.Amount.ToString(CultureInfo.InvariantCulture),
|
||||||
transaction.Amount.ToString(CultureInfo.InvariantCulture),
|
transaction.Currency]
|
||||||
transaction.Currency],
|
: localizer["TransactionNewBodyMinus",
|
||||||
|
transaction.Amount.ToString(CultureInfo.InvariantCulture),
|
||||||
|
transaction.Currency],
|
||||||
IsSavable = true
|
IsSavable = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user