Skip to content

Commit 9e8fda2

Browse files
authored
refactor: address review comments
1 parent 2957dd1 commit 9e8fda2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/guide/essentials/computed.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default {
280280
// When count is >=4, the last value that fulfilled our condition will be returned
281281
// instead until count is less or equal to 3
282282
alwaysSmall(previous) {
283-
if (this.count >= 3) {
283+
if (this.count <= 3) {
284284
return this.count;
285285
}
286286

@@ -303,12 +303,13 @@ const count = ref(2)
303303
// When count is >=4, the last value that fulfilled our condition will be returned
304304
// instead until count is less or equal to 3
305305
const alwaysSmall = computed((previous) => {
306-
if (count.value >= 3) {
306+
if (count.value <= 3) {
307307
return count.value;
308308
}
309309
310310
return previous;
311311
})
312+
</script>
312313
```
313314
</div>
314315

0 commit comments

Comments
 (0)