-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: minor changes to thorchain swapper tx status during swaps #7830
Conversation
@@ -373,7 +373,7 @@ export const thorchainApi: SwapperApi = { | |||
} | |||
|
|||
const latestOutTx = data.out_txs?.[data.out_txs.length - 1] | |||
const hasOutboundTx = latestOutTx?.chain !== 'THOR' | |||
const hasOutboundTx = latestOutTx !== undefined && latestOutTx.chain !== 'THOR' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So turns out, if there is no latestOutTx
it means it doesn't actually have an outbound tx 😅
Closed in favor of #7831 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -61,15 +61,18 @@ export const getLatestThorTxStatusMessage = ( | |||
} | |||
} | |||
|
|||
return { message: obj.pending ? 'Swap pending' : 'Swap complete', status: TxStatus.Pending } | |||
return { | |||
message: obj.pending ? 'Swap pending' : 'Swap complete, awaiting finalization', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not for this PR at all, but it occurred to me whilst reading this that all of these probably need actual translations!
The ruggiest of rugs 😂 |
Description
Investigation of #7371 led to some improvements to copy and a fix to swap status logic. Huzzah.
Issue (if applicable)
Stemmed from investigation of #7371
Risk
Low risk.
Testing
Test thorchain swaps complete as expected with better copy.
Engineering
Operations
Screenshots (if applicable)