Skip to content

Commit

Permalink
Исправлено: вместо emoji отображалось undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Sominemo committed Sep 13, 2020
1 parent 0305218 commit 6ffebec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mono-pwa",
"version": "3.4.0",
"version": "3.4.1",
"description": "monobank PWA",
"main": "index.html",
"config": {
Expand Down
2 changes: 2 additions & 0 deletions src/app/modules/mono/services/Push/SWScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ self.addEventListener("push", async (event) => {
emoji = data.item.amount < 0 ? "💳👉" : "💳👈"
} else emoji = getMCCEmoji(data.item.mcc)

if (!emoji) emoji = "💸"

registration.showNotification(
`${emoji} ${spentPart}`,
{
Expand Down

0 comments on commit 6ffebec

Please sign in to comment.