-
Notifications
You must be signed in to change notification settings - Fork 315
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
feat(LIVE-11102): add rate expired error message #6592
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
4 Ignored Deployments
|
@@ -98,7 +102,14 @@ const initSwap = (input: InitSwapInput): Observable<SwapRequestEvent> => { | |||
}); | |||
|
|||
if (unsubscribed || !res || !res.data) return; | |||
} catch (e) { | |||
} catch (e: any) { | |||
if (e.status == 422) { |
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.
for now we only have this single error case associated to status code 422, but we might have others in the future.
I would rather test more specifically on the messageKey="WRONG_OR_EXPIRED_RATE_ID"
@@ -104,6 +104,7 @@ export const SwapExchangeRateAmountTooLowOrTooHigh = createCustomErrorClass( | |||
); | |||
|
|||
export const SwapGenericAPIError = createCustomErrorClass("SwapGenericAPIError"); | |||
export const SwapRateExpieredError = createCustomErrorClass("SwapRateExpieredError"); |
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.
Expiered -> Expired
Deployment failed with the following error:
|
β Checklist
npx changeset
was attached.π Description
Add error message for expired rate
β Context
https://ledgerhq.atlassian.net/browse/LIVE-11102
π§ Checklist for the PR Reviewers