Skip to content

Commit 6a2dd14

Browse files
fix(mobile): only a full webhook URL can be copied
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 82117a9 commit 6a2dd14

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,10 +991,14 @@ function WebhookScheduleDetails({
991991
accessibilityRole="button"
992992
accessibilityLabel="Copy webhook URL"
993993
accessibilityHint="Copies the URL to the clipboard"
994+
// A bare path is not something a sender can call, so only full URLs copy.
995+
disabled={!address.startsWith("http")}
994996
onPress={() => void tryCopyTextWithHaptic(address)}
995997
className="gap-1 active:opacity-70"
996998
>
997-
<Text className="text-lg text-foreground">Webhook URL</Text>
999+
<Text className="text-lg text-foreground">
1000+
{address.startsWith("http") ? "Webhook URL" : "Webhook path"}
1001+
</Text>
9981002
<Text className="text-sm text-foreground-muted" numberOfLines={2} selectable>
9991003
{address}
10001004
</Text>

0 commit comments

Comments
 (0)