Skip to content

Commit 9a3e727

Browse files
author
farfromrefuge
committed
fix(android): another fix for options init which would prevent issue sending to server
1 parent 651e5a8 commit 9a3e727

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wrapper.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ export namespace NATIVE {
388388
}
389389
Object.keys(otherOptions).forEach(k => {
390390
const methodName = `set${capitalize(k)}`;
391-
if (typeof config[methodName] === 'function') {
392-
const value = otherOptions[k];
391+
const value = otherOptions[k];
392+
if (value && typeof config[methodName] === 'function') {
393393
if (typeof value === 'number') {
394394
config[methodName](java.lang.Double.valueOf(value));
395395

0 commit comments

Comments
 (0)