Skip to content

Commit d97f11a

Browse files
authored
fix: Fix bool cast (mrousavy#383)
fixes mrousavy#380 now for good
1 parent d79c037 commit d97f11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/MmkvHostObject.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
BOOL hasValue;
108108
auto value = [instance getBoolForKey:keyName defaultValue:false hasValue:&hasValue];
109109
if (hasValue) {
110-
return jsi::Value(value);
110+
return jsi::Value(value == true);
111111
} else {
112112
return jsi::Value::undefined();
113113
}

0 commit comments

Comments
 (0)