We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f40921 commit 0133897Copy full SHA for 0133897
packages/animated/src/AnimatedString.ts
@@ -26,8 +26,15 @@ export class AnimatedString extends AnimatedValue<Value> {
26
}
27
28
setValue(value: Value) {
29
- this._string = is.num(value) ? null : value
30
- this._value = is.num(value) ? value : 1
+ if (!is.num(value)) {
+ this._string = value
31
+ this._value = 1
32
+ } else if (super.setValue(value)) {
33
+ this._string = null
34
+ } else {
35
+ return false
36
+ }
37
+ return true
38
39
40
reset(isActive?: boolean, goal?: string) {
0 commit comments