From 45c10312a1ead327d2444c04be3d85b8814b52b8 Mon Sep 17 00:00:00 2001 From: Dan Lipert Date: Tue, 14 Jan 2020 23:40:32 +0900 Subject: [PATCH] fix sentry error when no account available in grants --- app/assets/v2/js/grants/shared.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/v2/js/grants/shared.js b/app/assets/v2/js/grants/shared.js index 8a01a60b164..7c471b51b73 100644 --- a/app/assets/v2/js/grants/shared.js +++ b/app/assets/v2/js/grants/shared.js @@ -50,6 +50,7 @@ const notifyOwnerAddressMismatch = (username, address, button, message) => { web3.eth.getAccounts((error, accounts) => { if ( + typeof accounts != 'undefined' && document.contxt && document.contxt.github_handle == username && accounts[0] && accounts[0] != address ) {