Skip to content

Commit

Permalink
handle undefined lastClientCalled
Browse files Browse the repository at this point in the history
  • Loading branch information
hofstede-matheus committed Oct 11, 2023
1 parent d4ad14d commit 5a7b929
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class DeskController {
if (result.isLeft()) throw toPresentationError(result.value);

return {
lastClientCalled: {
lastClientCalled: result.value.client ?? {
id: result.value.client.id,
name: result.value.client.name,
organizationId: result.value.client.organizationId,
Expand Down

0 comments on commit 5a7b929

Please sign in to comment.