Skip to content

Commit 0f3c58f

Browse files
pfei5NiklasMerz
andauthored
Fixed "ambiguous user of subscript(_:)" compile error. (#234)
Co-authored-by: Niklas Merz <[email protected]>
1 parent e869fe2 commit 0f3c58f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ios/Fingerprint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ import LocalAuthentication
8585
var pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR, messageAs: errorResponse);
8686
var reason = "Authentication";
8787
var policy:LAPolicy = .deviceOwnerAuthentication;
88-
let data = command.arguments[0] as AnyObject?;
88+
let data = command.arguments[0] as? [String: Any];
8989

9090
if let disableBackup = data?["disableBackup"] as! Bool? {
9191
if disableBackup {

0 commit comments

Comments
 (0)