Fix platformDependentDefault

This commit is contained in:
WardPearce
2024-09-07 17:20:33 +12:00
parent 6148ce8f6a
commit 6fbc33e4ab
+1 -1
View File
@@ -8,7 +8,7 @@ import type { TitleCase } from './misc';
function platformDependentDefault(givenValue: any, defaultValue: any): any {
if (typeof givenValue !== 'undefined' || typeof givenValue !== null) {
if (typeof givenValue !== 'undefined' && typeof givenValue !== null) {
return givenValue;
} else if (defaultValue && Capacitor.getPlatform() !== 'web') {
return defaultValue;