Skip to content

Commit

Permalink
chore(qbx-storerobbery): remove console error by adding optional ref …
Browse files Browse the repository at this point in the history
…to data obj (#10)
  • Loading branch information
kylemcshea authored Aug 28, 2023
1 parent 8430ced commit 7a4d754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
}
}
Expand Down

0 comments on commit 7a4d754

Please sign in to comment.