Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Sep 1, 2018
1 parent 9550703 commit e354ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-print/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ export default () => ({
let alignmentX;
let alignmentY;

if (typeof text === 'object' && text.text !== null) {
if (typeof text === 'object' && text.text !== null && text.text !== undefined) {
alignmentX = text.alignmentX || this.constructor.HORIZONTAL_ALIGN_LEFT;
alignmentY = text.alignmentY || this.constructor.VERTICAL_ALIGN_TOP;
({ text } = text);
Expand Down

0 comments on commit e354ae0

Please sign in to comment.