fixes channel claim issue introduced by file extension fix
This commit is contained in:
parent
8f9d80acbe
commit
ae2283911e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue