Skip to content

Commit

Permalink
check if description exists first (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
gluneau authored Feb 12, 2024
1 parent c63991c commit 6ad74ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/FirebaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ export class FirebaseService implements IFirebaseService {
data.forEach((x) => {
const data = x.data() as DappItem;
data.creationTime = x.createTime.seconds;
data.description = this.decode(data.description);
if (data.description) {
data.description = this.decode(data.description);
}
data.shortDescription = this.decode(data.shortDescription ?? '');
result.push(data);
});
Expand Down

0 comments on commit 6ad74ba

Please sign in to comment.