mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-04 21:18:31 +01:00
fix(settings): address CodeRabbit review (guard clipboard copy, reuse getUserImageUrl, hoist search title)
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user