Skip to content
This repository has been archived by the owner on Dec 24, 2020. It is now read-only.

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
realtebo committed Sep 22, 2018
1 parent 5a84d84 commit 41ad408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/src/helpers/delete-show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const deleteShow = async (hash: string, chat_id: number, message_id: numb
try {
const snap : json_fmt = await get_snap_from_hash(hash);
console.log ('deleting show', snap);
if (typeof snap.title !== 'undefined') {
if ( snap !== null && typeof snap.title !== 'undefined') {
console.log ('- Titolo non undefined');
const title = cleanString(snap.title);

Expand Down

0 comments on commit 41ad408

Please sign in to comment.