Skip to content

Commit 1a97ded

Browse files
committed
Dropdown: turn a !! into Boolean() for readability
1 parent d808026 commit 1a97ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Alert.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
watch: {
5151
show(val) {
5252
if (this._timeout) clearTimeout(this._timeout)
53-
if (val && !!this.duration) {
53+
if (val && Boolean(this.duration)) {
5454
this._timeout = setTimeout(()=> this.show = false, this.duration)
5555
}
5656
}

0 commit comments

Comments
 (0)