Fix typo in Ui/Reaction/Handler.ts
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 10 Aug 2021 12:34:12 +0000 (14:34 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 10 Aug 2021 12:34:12 +0000 (14:34 +0200)
see 679d5fe8a2353c69b75fd103753831dc785f83a8

ts/WoltLabSuite/Core/Ui/Reaction/Handler.ts

index c53a36c778456a8f4d27e57ba2068133d09af955..32ffd5c35ddb69d84012c07c5f0fce89de033b6f 100644 (file)
@@ -482,7 +482,7 @@ class UiReactionHandler {
   }
 
   _ajaxSuccess(data: AjaxResponse): void {
-    const objectId = ~data.returnValues.objectID;
+    const objectId = ~~data.returnValues.objectID;
     this.countButtons.updateCountButtons(objectId, data.returnValues.reactions);
 
     this._updateReactButton(objectId, data.returnValues.reactionTypeID);