visuddhinanda пре 2 година
родитељ
комит
ee37c19a9e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Http/Resources/SentResource.php

+ 1 - 1
app/Http/Resources/SentResource.php

@@ -52,7 +52,7 @@ class SentResource extends JsonResource
                                              $channel['type'],
                                              $this->content_type);
         }
-        if($request->get('mode')==="edit" || $request->get('mode')==="wbw"){
+        if($request->get('mode') === "edit" || $request->get('mode') === "wbw"){
             $data['suggestionCount'] = SuggestionApi::getCountBySent($this->book_id,
                                                                    $this->paragraph,
                                                                    $this->word_start,