From ae2283911ea722ac54a5f09bfad817e9d6679062 Mon Sep 17 00:00:00 2001 From: jessop Date: Mon, 17 Dec 2018 17:16:29 -0500 Subject: [PATCH] fixes channel claim issue introduced by file extension fix --- server/utils/getClaimData.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/utils/getClaimData.js b/server/utils/getClaimData.js index e0ab2433..5e26aad4 100644 --- a/server/utils/getClaimData.js +++ b/server/utils/getClaimData.js @@ -22,7 +22,7 @@ module.exports = async (data) => { let lbrynetFileExt = null; if (!data.fileExt) { lbrynetClaimResult = await getClaim(lbrynetUri).catch(() => { return 'invalid URI' }); - lbrynetFileExt = lbrynetClaimResult && lbrynetClaimResult.file_name.split('.').slice(-1).pop(); + lbrynetFileExt = lbrynetClaimResult && lbrynetClaimResult.file_name && lbrynetClaimResult.file_name.split('.').slice(-1).pop(); } // TODO verify that "generated_x" does anything at all