Merged PR 234: [dev動作確認指摘の修正]異常系メッセージ表示
## 概要 [Task2194: [dev動作確認指摘の修正]異常系メッセージ表示](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2194) - 元PBI or タスクへのリンク(内容・目的などはそちらにあるはず) - 何をどう変更したか、追加したライブラリなど - このPull Requestでの対象/対象外 - 影響範囲(他の機能にも影響があるか) ## レビューポイント - 特にレビューしてほしい箇所 - 軽微なものや自明なものは記載不要 - 修正範囲が大きい場合などに記載 - 全体的にや仕様を満たしているか等は本当に必要な時のみ記載 ## UIの変更 - Before/Afterのスクショなど - スクショ置き場 ## 動作確認状況 - ローカルで確認、develop環境で確認など ## 補足 - 相談、参考資料などがあれば
This commit is contained in:
parent
9528bb1ad6
commit
b4026c1460
@ -27,4 +27,6 @@ export const errorCodes = [
|
||||
"E010401", // PONumber重複エラー
|
||||
"E010601", // タスク変更不可エラー(タスクが変更できる状態でない、またはタスクが存在しない)
|
||||
"E010602", // タスク変更権限不足エラー
|
||||
"E010801", // ライセンス不在エラー
|
||||
"E010802", // ライセンス取り込み済みエラー
|
||||
] as const;
|
||||
|
||||
@ -50,7 +50,17 @@ export const activateCardLicenseAsync = createAsyncThunk<
|
||||
// e ⇒ errorObjectに変換"
|
||||
const error = createErrorObject(e);
|
||||
|
||||
const errorMessage = getTranslationID("common.message.internalServerError");
|
||||
let errorMessage = getTranslationID("common.message.internalServerError");
|
||||
|
||||
if (error.code === "E010801") {
|
||||
errorMessage = getTranslationID(
|
||||
"cardLicenseActivatePopupPage.message.LicenseKeyNotExistError"
|
||||
);
|
||||
} else if (error.code === "E010802") {
|
||||
errorMessage = getTranslationID(
|
||||
"cardLicenseActivatePopupPage.message.LicenseKeyAlreadyActivatedError"
|
||||
);
|
||||
}
|
||||
|
||||
thunkApi.dispatch(
|
||||
openSnackbar({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user