Skip to content

Commit

Permalink
fix: prompt touch id fix
Browse files Browse the repository at this point in the history
  • Loading branch information
siandreev committed May 7, 2024
1 parent 2cf4e55 commit 1b4a8ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/desktop/src/electron/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const handleBackgroundMessage = async (message: Message): Promise<unknown
case 'reconnect':
return await TonConnectSSE.getInstance().reconnect();
case 'can-prompt-touch-id':
return systemPreferences.canPromptTouchID();
return !!systemPreferences?.canPromptTouchID?.();
case 'prompt-touch-id':
return systemPreferences.promptTouchID(message.reason);
case 'get-preferred-system-languages':
Expand Down

0 comments on commit 1b4a8ea

Please sign in to comment.