From 140baf9c97b6f6ec11dcc319f26c646f57b5fdcd Mon Sep 17 00:00:00 2001 From: Kyle McShea <46171436+kylemcshea@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:46:34 -0700 Subject: [PATCH] chore(qbx-storerobbery): remove console error by adding optional ref to data obj --- html/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/script.js b/html/script.js index d3fcb2e..c1a99fd 100644 --- a/html/script.js +++ b/html/script.js @@ -70,7 +70,7 @@ Keypad.Open = function(data) { Keypad.Close = function(data) { $("#keypad").css("display", "none"); $.post(`https://${GetParentResourceName()}/PadLockClose`); - if (data.error) { + if (data?.error) { $.post(`https://${GetParentResourceName()}/CombinationFail`); } }