[accelerator] fix message when trying to accelerate
This commit is contained in:
parent
28733c1e97
commit
0e3b3a0e00
@ -189,7 +189,11 @@ export class AcceleratePreviewComponent implements OnInit, OnDestroy, OnChanges
|
|||||||
this.estimateSubscription.unsubscribe();
|
this.estimateSubscription.unsubscribe();
|
||||||
},
|
},
|
||||||
error: (response) => {
|
error: (response) => {
|
||||||
this.error = response.error;
|
if (response.status === 403 && response.error === 'not_available') {
|
||||||
|
this.error = 'waitlisted';
|
||||||
|
} else {
|
||||||
|
this.error = response.error;
|
||||||
|
}
|
||||||
this.scrollToPreviewWithTimeout('mempoolError', 'center');
|
this.scrollToPreviewWithTimeout('mempoolError', 'center');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -13,7 +13,7 @@ const MempoolErrors = {
|
|||||||
'invalid_tx_dependencies': `This transaction dependencies are not valid.`,
|
'invalid_tx_dependencies': `This transaction dependencies are not valid.`,
|
||||||
'mempool_rejected_raw_tx': `Our mempool rejected this transaction`,
|
'mempool_rejected_raw_tx': `Our mempool rejected this transaction`,
|
||||||
'no_mining_pool_available': `No mining pool available at the moment`,
|
'no_mining_pool_available': `No mining pool available at the moment`,
|
||||||
'not_available': `You current subscription does not allow you to access this feature.<strong>`,
|
'not_available': `You current subscription does not allow you to access this feature.`,
|
||||||
'not_enough_balance': `Your account balance is too low. Please make a <a style="color:#105fb0" href="/services/accelerator/overview">deposit.</a>`,
|
'not_enough_balance': `Your account balance is too low. Please make a <a style="color:#105fb0" href="/services/accelerator/overview">deposit.</a>`,
|
||||||
'not_verified': `You must verify your account to use this feature.`,
|
'not_verified': `You must verify your account to use this feature.`,
|
||||||
'recommended_fees_not_available': `Recommended fees are not available right now.`,
|
'recommended_fees_not_available': `Recommended fees are not available right now.`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user