Skip to content

Commit 41e5199

Browse files
authored
Merge pull request #773 from y-temp4/add-invalid-send-error
ALIS-3054: Add invalid send error message
2 parents 6731e8c + ae06dc7 commit 41e5199

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

app/components/pages/WithdrawToken.vue

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,17 +267,20 @@ export default {
267267
this.address = ''
268268
this.isConfirmPage = false
269269
} catch (error) {
270-
if (
271-
error.response.data.message ===
272-
'Invalid parameter: Token withdrawal limit has been exceeded.'
273-
) {
270+
const message = error.response.data.message
271+
if (message === 'Invalid parameter: Token withdrawal limit has been exceeded.') {
274272
const dailyLimit = addDigitSeparator(
275273
new BigNumber(process.env.DAILY_LIMIT_TOKEN_SEND_VALUE).div(formatNumber).toString(10)
276274
)
277275
this.sendNotification({
278276
text: `一日の出金上限額である${dailyLimit}ALIS(手数料含む)を超えたため、出金できませんでした`,
279277
type: 'warning'
280278
})
279+
} else if (message === 'Invalid parameter: send_value') {
280+
this.sendNotification({
281+
text: 'エラーが発生しました。入力内容を確認してください',
282+
type: 'warning'
283+
})
281284
} else {
282285
this.sendNotification({
283286
text: '出金のトランザクション発行に失敗しました',

0 commit comments

Comments
 (0)