Skip to content

Commit f88f411

Browse files
fix(mobile): git action result haptics are best effort
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent a15ff6c commit f88f411

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎apps/mobile/src/state/use-vcs-action-state.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,12 @@ function broadcast(result: GitActionResultNotification | null): void {
3232
}
3333

3434
export function showGitActionResult(result: GitActionResultNotification): void {
35-
void Haptics.notificationAsync(
35+
// Best effort: devices without a haptics engine reject.
36+
Haptics.notificationAsync(
3637
result.type === "success"
3738
? Haptics.NotificationFeedbackType.Success
3839
: Haptics.NotificationFeedbackType.Error,
39-
);
40+
).catch(() => undefined);
4041
if (dismissTimer) clearTimeout(dismissTimer);
4142
broadcast(result);
4243
dismissTimer = setTimeout(() => {

0 commit comments

Comments
 (0)