fix(settings): address CodeRabbit review (guard clipboard copy, reuse getUserImageUrl, hoist search title)

This commit is contained in:
Gauvain
2026-06-04 11:40:40 +02:00
parent da47ad0502
commit 9f3014a430
4 changed files with 25 additions and 20 deletions

View File

@@ -20,9 +20,13 @@ export default function AccountPage() {
const copyToken = async () => {
if (!token) return;
await setStringAsync(token);
success();
Alert.alert(t("home.settings.account.copied"));
try {
await setStringAsync(token);
success();
Alert.alert(t("home.settings.account.copied"));
} catch {
Alert.alert(t("home.settings.account.copy_failed"));
}
};
return (