We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78cd97 commit 124185bCopy full SHA for 124185b
src/pages/tBTC/Bridge/Minting/ProvideData.tsx
@@ -267,7 +267,16 @@ export const ProvideDataComponent: FC<{
267
networkName
268
)
269
270
- await depositTelemetry(receipt, btcDepositAddress)
+ try {
271
+ await depositTelemetry(receipt, btcDepositAddress)
272
+ } catch (error) {
273
+ threshold.tbtc.removeDepositData()
274
+ resetDepositData()
275
+ removeDepositDataFromLocalStorage(networkName)
276
+ setSubmitButtonLoading(false)
277
+ setTelemetryFailed(true)
278
+ return
279
+ }
280
281
// if the user has NOT declined the json file, ask the user if they want to accept the new file
282
if (shouldDownloadDepositReceipt) {
0 commit comments