From a849218f8113f52b189b2a7261a816a489834609 Mon Sep 17 00:00:00 2001 From: Whymarrh Whitby Date: Sun, 24 Nov 2019 13:45:35 -0330 Subject: [PATCH] Adjust QrCodeView propTypes for its Qr.messages prop (#7529) --- ui/app/components/ui/qr-code.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/app/components/ui/qr-code.js b/ui/app/components/ui/qr-code.js index e0b7f3ff2..0594273a2 100644 --- a/ui/app/components/ui/qr-code.js +++ b/ui/app/components/ui/qr-code.js @@ -69,7 +69,10 @@ function QrCodeView (props) { QrCodeView.propTypes = { warning: PropTypes.node, Qr: PropTypes.shape({ - message: PropTypes.array, + message: PropTypes.oneOfType([ + PropTypes.arrayOf(PropTypes.node), + PropTypes.node, + ]), data: PropTypes.string.isRequired, }).isRequired, }