Skip to content

Commit

Permalink
fix: Message sub can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
simonas-notcat committed Nov 30, 2019
1 parent f7dbc47 commit 6599296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/daf-data-store/src/data-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class DataStore {
rowId: `${row.rowid}`,
hash: row.hash,
iss: { did: row.iss },
sub: { did: row.sub },
sub: row.sub ? { did: row.sub } : null,
type: row.type,
tag: row.tag,
data: row.data,
Expand All @@ -187,7 +187,7 @@ export class DataStore {
rowId: `${row.rowid}`,
hash: row.hash,
iss: { did: row.iss },
sub: { did: row.sub },
sub: row.sub ? { did: row.sub } : null,
type: row.type,
tag: row.tag,
jwt: row.jwt,
Expand Down

0 comments on commit 6599296

Please sign in to comment.