Skip to content

Commit

Permalink
Исправление условия для проверки клавиатуры
Browse files Browse the repository at this point in the history
  • Loading branch information
egorprnn committed Nov 30, 2020
1 parent c653c9b commit 1fcf6d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vk-io-pages",
"version": "1.4.1",
"version": "1.4.2",
"description": "Модуль vk-io для создания динамических страниц",
"main": "./lib/PagesManager.js",
"exports": {
Expand Down
5 changes: 4 additions & 1 deletion src/PagesBuilder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ export class PagesBuilder extends EventEmitter {
return {
...page,
message: `${this.header}${page.message}${this.footer}\n\n${pageNumbers}`,
keyboard: keyboard.rows.length ? keyboard : JSON.stringify({})
keyboard: keyboard.rows.length || keyboard.currentRow.length ?
keyboard
:
JSON.stringify({})
};
}

Expand Down

0 comments on commit 1fcf6d6

Please sign in to comment.