From b8d49d9a954579111fe8cadc823c14cf1669a5c0 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Wed, 18 Sep 2024 21:02:27 -0400 Subject: [PATCH 1/2] FIX: Remove 'Alert' title #4020 --- components/Alert.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/Alert.ts b/components/Alert.ts index 2d42901f6..be97cfe64 100644 --- a/components/Alert.ts +++ b/components/Alert.ts @@ -1,6 +1,5 @@ import { Alert as RNAlert, Platform, ToastAndroid } from 'react-native'; import triggerHapticFeedback, { HapticFeedbackTypes } from '../blue_modules/hapticFeedback'; -import loc from '../loc'; export enum AlertType { Alert, @@ -29,7 +28,7 @@ const presentAlert = ({ ToastAndroid.showWithGravity(message, ToastAndroid.LONG, ToastAndroid.BOTTOM); break; default: - RNAlert.alert(title ?? loc.alert.default, message); + RNAlert.alert(title ?? message, title && message ? message : undefined); break; } }; From db3c0ab683adeb484ac8f6b38e47a68cc7c23168 Mon Sep 17 00:00:00 2001 From: Marcos Rodriguez Velez Date: Wed, 18 Sep 2024 21:31:51 -0400 Subject: [PATCH 2/2] Update en.json --- loc/en.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/loc/en.json b/loc/en.json index 9ecf5079e..18135d7bb 100644 --- a/loc/en.json +++ b/loc/en.json @@ -27,9 +27,6 @@ "qr_custom_input_button": "Tap 10 times to enter custom input", "unlock": "Unlock" }, - "alert": { - "default": "Alert" - }, "azteco": { "codeIs": "Your voucher code is", "errorBeforeRefeem": "Before redeeming, you must first add a Bitcoin wallet.",