Skip to content

Commit 9bdcde3

Browse files
authored
Merge pull request #825 from relayprotocol/update-tx-steps-copy
Update copy for tx steps
2 parents 748ca6b + e43a756 commit 9bdcde3

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/tricky-years-jump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@relayprotocol/relay-kit-ui': patch
3+
---
4+
5+
Improved copy for tx steps

packages/ui/src/utils/steps.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export const formatTransactionSteps = ({
247247
// Handle pending status - backend processing (relay step)
248248
if (checkStatus === 'pending') {
249249
if (stepType === 'relay') {
250-
return 'Relay routing your payment'
250+
return undefined
251251
}
252252
if (stepType === 'send') {
253253
return 'Sent to Relay'
@@ -284,7 +284,7 @@ export const formatTransactionSteps = ({
284284
? `Sending to Relay: ${hash.slice(0, 6)}...${hash.slice(-4)}`
285285
: 'Sending to Relay'
286286
} else {
287-
return 'Relay routing your payment'
287+
return 'Relay processes your transaction'
288288
}
289289
}
290290
return undefined
@@ -293,7 +293,7 @@ export const formatTransactionSteps = ({
293293
return 'Receiving'
294294

295295
case 'relay':
296-
return 'Relay routing your payment'
296+
return undefined
297297

298298
default:
299299
return undefined

0 commit comments

Comments
 (0)