visuddhinanda 2 лет назад
Родитель
Сommit
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,