Skip to content

Commit

Permalink
Fix: Update hesitation reason when empty (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage authored Sep 13, 2023
1 parent 654bff8 commit 4ac75bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/services/fediseer-api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ export class FediseerApiService {
if (reason) {
body['reason'] = reason;
}
if (evidence) {
body['evidence'] = evidence;
}
body['evidence'] = evidence ?? '';
return this.sendRequest(HttpMethod.Patch, `hesitations/${instance}`, body);
}

Expand Down

0 comments on commit 4ac75bf

Please sign in to comment.