Skip to content

Commit

Permalink
Fix AT push toast
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Kudinov committed Aug 15, 2024
1 parent e90d6ff commit b41ff9a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion frontend/app/modules/bot-command/bot-command.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,15 @@ export class BotCommandStore {
})) as StatusResponse

if (response.payload.status === STATUS.ERROR) {
this.rootStore.toastStore.showToast(`Ошибка прие отправке команды ${response.payload.errorCode}`)
this.rootStore.toastStore.showToast(`Ошибка при отправке команды ${response.payload.errorCode}`)
}

runInAction(() => {
this.response = response

if (method === 'send_notification') {
this.rootStore.toastStore.showToast('NotificationStatus: ok')
}
})
} catch (e) {
this.rootStore.toastStore.showToast(`Ошибка при отправке команды ${e?.message}`)
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-feature-smartapp",
"version": "2.3.5",
"version": "2.3.6",
"description": "SmartApp with all features",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion frontend/smartapp-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"manifestVersion": "1.0.0",
"smartAppVersion": "",
"bundlePath": "",
"changeLog": "AT фиксы"
"changeLog": "AT фикс пуша"
}

0 comments on commit b41ff9a

Please sign in to comment.