Skip to content

Commit

Permalink
fix warnings - modify == to === for Comparison strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Eisakhanzadi authored and khanzadimahdi committed Aug 15, 2024
1 parent 71384e8 commit cad0415
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions frontend/pages/articles/[uuid].vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@

<div v-if="data.elements">
<template v-for="(element, index) in data.elements">
<Jumbotron :key="index" v-if="element.type == 'jumbotron'" :body="element.body" />
<Featured :key="index" v-if="element.type == 'featured'" :body="element.body" />
<Jumbotron :key="index" v-if="element.type === 'jumbotron'" :body="element.body" />
<Featured :key="index" v-if="element.type === 'featured'" :body="element.body" />
</template>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions frontend/pages/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<div v-if="!pending">
<template v-if="data?.elements" v-for="element in data.elements">
<Jumbotron v-if="element.type == 'jumbotron'" :body="element.body"/>
<Featured v-if="element.type == 'featured'" :body="element.body"/>
<Jumbotron v-if="element.type === 'jumbotron'" :body="element.body"/>
<Featured v-if="element.type === 'featured'" :body="element.body"/>
</template>

` <div class="container">
<div class="container">
<div class="row justify-content-between">
<div class="col-md-8">
<h5 class="fw-bold spanborder"><span>جدیدترین‌ ها</span></h5>
Expand All @@ -26,7 +26,7 @@
</div>
</div>
</div>
` </div>
</div>
</template>

<script setup>
Expand Down

0 comments on commit cad0415

Please sign in to comment.