diff --git a/src/channel/bubbleMsgUtils.js b/src/channel/bubbleMsgUtils.js
index b1e578c..bd41c97 100644
--- a/src/channel/bubbleMsgUtils.js
+++ b/src/channel/bubbleMsgUtils.js
@@ -897,7 +897,7 @@ export const whatsappError = {
'131047': '[131047] 会话未激活. \n请使用模板消息💬发送',
'131053': '[131053] 文件上传失败.',
'131048': '[131048] 账户被风控.', // 消息发送太多, 达到垃圾数量限制
- '131049': '[131049] 号码触发风控. \n请暂停发送营销消息, 使用跟进模板\n或引导客户主动发起会话.', // 消息发送太多, 营销限制
+ '131049': '[131049] 号码触发风控. \n请暂停发送营销消息, 使用"触达率高"模板\n或引导客户主动发起会话.', // 消息发送太多, 营销限制
'131031': '[131031] 账户已被禁用.',
'130472': '[130472] 此号码不接收商业号消息\n请使用邮件联系 或 引导客户主动发起会话.',
};
diff --git a/src/views/Conversations/Online/Input/Template.jsx b/src/views/Conversations/Online/Input/Template.jsx
index 98e15d5..f1e9e96 100644
--- a/src/views/Conversations/Online/Input/Template.jsx
+++ b/src/views/Conversations/Online/Input/Template.jsx
@@ -167,7 +167,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage, channel }) => {
const { notification } = App.useApp();
const loginUser = useAuthStore((state) => state.loginUser);
const { whatsAppBusiness } = loginUser;
- loginUser.usernameEN = loginUser.accountList[0].OPI_NameEN.split(' ')?.[0] || loginUser.username;
+ loginUser.usernameEN = (loginUser.accountList[0]?.OPI_NameEN || '').split(' ')?.[0] || loginUser.username;
const currentConversation = useConversationStore((state) => state.currentConversation);
const templates = useConversationStore((state) => state.templates);
@@ -318,7 +318,7 @@ const InputTemplate = ({ disabled = false, invokeSendMessage, channel }) => {
...(Object.keys(templateLangMapped).map(lang => ({
key: lang, label: lang.toUpperCase(), children:
})))
- ]} defaultActiveKey='utility' tabBarExtraContent={{right: , }} size='small' />
+ ]} defaultActiveKey='utility' tabBarExtraContent={{right: , }} size='small' />
) :
(
// Search result
diff --git a/src/views/accounts/GeneratePayment.jsx b/src/views/accounts/GeneratePayment.jsx
index d8b6922..c4a24e1 100644
--- a/src/views/accounts/GeneratePayment.jsx
+++ b/src/views/accounts/GeneratePayment.jsx
@@ -43,7 +43,7 @@ function GeneratePayment() {
fetchOrderDetail(currentOrder)
.then((result) => {
const orderNumber = result.orderDetail.order_no
- const travelAdvisor = loginUser.accountList.length > 0 ? loginUser.accountList[0].OPI_NameEN : ''
+ const travelAdvisor = loginUser.accountList.length > 0 ? (loginUser.accountList[0]?.OPI_NameEN || '') : ''
generateForm.setFieldsValue({
notifyEmail: getPrimaryEmail(),
orderNumber: orderNumber,