Skip to content

Commit

Permalink
return THAT
Browse files Browse the repository at this point in the history
  • Loading branch information
craigkai committed Jan 17, 2024
1 parent d1d384d commit 5dc679d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/matches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@ export class Matches implements Writable<Matches> {
// Call multi insert:
const res = await this.databaseService.insertMatches(userMatches);
if (res) {
this._update((that: Matches) => (that.matches = res));
this._update((that: Matches) => {
that.matches = res;
return that;
});
}
return this;
} catch (err) {
Expand Down

0 comments on commit 5dc679d

Please sign in to comment.